Select Yes to enable access to AvaTaxTest pipelines on the storefront. Enabled by default.

AvaTax Company Code

Enter your AvaTax company code to save transactions to companies configured in AvaTax

AvaTax Default Shipping Method Tax Code (Tax)

Enter the default tax code to send when a shipping method has no tax class ID

AvaTax ShipFrom location code

Complete this field only if a location code is configured for a company in AvaTax with a valid distributor address. If anything is entered in this field, it's used for tax calculation on all your transactions and is given priority over all other ship from address fields.

Avatax ShipFrom City

Avatax ShipFrom StateCode

Avatax ShipFrom ZipCode

Avatax ShipFrom Country Code

Make sure the values in these fields match the address of the distributor

Install the SGJC

The AvaTax for Salesforce B2C Commerce SGJC cartridge provides rapid integration for Salesforce B2C Commerce implementations. The self-contained cartridge easily integrates into any project. It can be configured in the Business Manager and contains all elements necessary to perform a successful best practices implementation.

Install AvaTax for your accounting software

To install AvaTax for Salesforce B2C Commerce, complete all the steps in this section.

Pass OrderNo to the cart.createOrder() function: // Creates a new order. This will internally ReserveInventoryForOrder and will create a new Order with status
// 'Created'.
var order = cart.createOrder(OrderNo);

In COShipping.js, add the blue, bolded code to the following functions:

In calculate.js, require the Site module and add the following blue, bolded conditional statement around calculateTax() to avoid calling it if AvaTax is enabled:

Var Site = require('dw/system/Site');

and add the following conditional statement around calculateTax() to avoid calling it if Avatax is enabled:if(!Site.getCurrent().getCustomPreferenceValue('ATEnable')) {
calculateTax(basket);
}

Test the connection with AvaTax

Navigate to the connection test address to make sure you're properly connecting to AvaTax.

In the Salesforce B2C Commerce Business Manager, go to Storefront.

In the browser address bar, at the end of the URL, replace Home-Show with Test-Connect, and then press Enter. For example:
Change http://realmURL/ on/demandware.store/Sites-mysite-Site/default/Home-Show
to http://realmURL/on/demandware.store/Sites-mysite-Site/default/Test-Connect