Develop > Persistence layer > Data assets > Create shipping assets


Create shipping fulfillment assets

In order for the shipping assets to work correctly in your store, associate the shipping jurisdiction groups to the calculation rules and the fulfillment centers to the shipping modes used in the store.

You must create the fulfillment assets before you can associate the 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

  1. Create an XML file that follows the wcs.dtd file. The DTD file is located...

  2. 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 the 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"
    

  3. Repeat step 2 for each jurisdiction group, fulfillment center and rule association in the store.

  4. 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" 
     precedence= "0"
     flags="0"
    />
    

    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.

  5. Repeat step 4 for all shipping modes used in the store.


Related concepts

Ship assets


Related tasks

Load a store

Load database asset groups


+

Search Tips   |   Advanced Search