In order for your shipping assets to work correctly in your store, you must associate the shipping jurisdiction groups to the calculation rules and the fulfillment centers to the shipping modes used in the store.
You must create your fulfillment assets before you can associate your shipping assets to a fulfillment center.
After you have created the fulfillment assets, associate shipping assets to them by adding information to the SHPJCRULE and SHPARRANGE tables.
- Create an XML file that follows the wcs.dtd file. The DTD file is located in the following directory:
- WC_installdir/schema/xml
WCDE_installdir/schema/xml/
- Associate calculation rules to a shipping jurisdiction group by adding information to the SHPJCRULE table. Use the following example as your guide. If you are creating a multicultural store, also create an XML file for each locale your store supports.
<shpjcrule calrule_id="@calrule_id_1" ffmcenter_id="@ffmcenter_id_1" jurstgroup_id="@jurstgroup_id_1" precedence="0" shipmode_id="@shipmode_id_1" shpjcrule_id="@shpjcrule_id_1" />
- Repeat step 2 for each jurisdiction group, fulfillment center and rule association in your store.
- Associate the shipping mode and a fulfillment center to your store, by adding information to the SHPARRANGE table. Use the following example as your guide:
<shparrange shparrange_id="@shparrange_id_2" store_id="@storeent_id_1" ffmcenter_id="@ffmcenter_id_1" shipmode_id= "@shipmode_id_2" startdate="1970-06-22 23:00:00.000000" enddate= "2008-06-22 23:00:00.000000" precedence= "0" flags="0" />
- Repeat step 4 for all shipping modes used in your store.