You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're wanting to use this plugin for a marketplace (peer-to-peer selling) website. However, I think we need the ability to set the FROM address on a per-cart basis.
It is highly recommended to use the FROM address of the merchant selling the product (or multiple addresses) using the from_ or nexus_addresses parameters with the /v2/taxes endpoint. This will provide the most accurate sales tax calculation and determine if sales tax is actually due.
Can this plugin provide a way to do that?
The current FROM location is pulled from this setting, I think:
Go to Commerce → Store Settings → Store Location, and ensure that everything is set correctly there. The plugin will use this info to populate the from address when getting tax info from TaxJar.
The text was updated successfully, but these errors were encountered:
<?php
// In your custom module
use yii\base\Module;
use craft\commerce\taxjar\adjusters\TaxJar as TaxJarAdjuster;
use craft\commerce\taxjar\events\ModifyRequestEvent as TaxJarModifyRequestEvent;
class General extends Module
{
public function init()
{
// ....
/**
* Listen for the TaxJar Plugin's tax Adjuster, and modify the request
* to the TaxJar API.
*/
Event::on(
TaxJarAdjuster::class,
TaxJarAdjuster::EVENT_MODIFY_TAX_FOR_ORDER_REQUEST,
function (TaxJarModifyRequestEvent $event) {
// ...add or change params here...
// $event->requestParams = ...
// $event->order and $event->address are available too
}
);
}
}
Description
We're wanting to use this plugin for a marketplace (peer-to-peer selling) website. However, I think we need the ability to set the FROM address on a per-cart basis.
From TaxJar (https://support.taxjar.com/article/165-what-if-i-dont-know-the-from-address-at-time-of-tax-estimation):
Can this plugin provide a way to do that?
The current FROM location is pulled from this setting, I think:
The text was updated successfully, but these errors were encountered: