HCL Commerce Enterprise

Enabling tax sharing in an extended site model

In an extended sites store model, tax assets can be shared between the extended site asset store and the extended site store if there is a relationship of com.ibm.commerce.tax between the extended site store and the extended site asset store.

Thus, the extended sites store can use the tax assets defined in the extended site asset store to calculate the tax in the order flow and the return flow.

The following tax assets are shared:

  • Tax calculation codes
  • Tax categories
  • Tax jurisdictions

Procedure

  1. Update the CALUSAGE table to use the com.ibm.commerce.tax store relationship type using the following SQL statement:
    UPDATE CALUSAGE SET STRELTYPNAMECFG='com.ibm.commerce.tax', 
    STRELTYPNAMERT='com.ibm.commerce.tax' WHERE CALUSAGE_ID=-3 OR CALUSAGE_ID=-4;
  2. Relate the extended site store to the extended site asset store with com.ibm.commerce.tax. Run the following SQL statement:
    INSERT INTO STOREREL (STRELTYP_ID, RELATEDSTORE_ID, STORE_ID, SEQUENCE, STATE) 
    VALUES (-2, EXTENDED_SITE_ASSET_STORE_ID, EXTENDED_SITE_STORE_ID, 1.0, 1);
    Where
    EXTENDED_SITE_ASSET_STORE_ID
    The extended site asset store ID
    EXTENDED_SITE_STORE_ID
    The extended site store ID
  3. Create the tax asset in the extended site asset store in HCL Commerce Accelerator. Tax assets created in the extended site asset store can be used for tax calculations in extended site stores. The Change Tax menu item will not be enabled for the extended site asset store. To enable the Change Tax menu item, see Managing tax assets on an extended site asset store.

Results

Upon completing the above steps, both sales tax and shipping tax are shared in the extended site model. You cannot enable just one type of tax sharing since common assets are mixed together for these two types of taxes. You can stop the sharing of sales tax category/tax code or shipping tax category/tax code individually. For more information, see Disabling tax sharing in an Extended Site Model.