Creating shipping fulfillment assets
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.
About this task
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.
Procedure
- Create an XML file that follows the wcs.dtd file. The DTD
file is located in the following directory:
- WC_installdir/schema/xml
- workspace_dir/wc/xml/sar/
- 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:
This example does not set an end date for the shipping arrangement. The result is that this example sets the end date as a null value, which implies that the shipping arrangement never expires. If you have a business need, you can specify an end date, after which the shipping arrangement will expire, and the store will no longer accept orders to which this shipping mode and fulfillment center would apply.<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" precedence= "0" flags="0" />
- Repeat step 4 for all shipping modes used in your store.