uShop Shipping Setup


Admittedly, the shipping parameter is one of the more difficult parameters to setup in the uShopOrder applets. However, once you understand the format of the parameter, you will be able to setup almost any type of Shipping Method/Calculation.


Shipping Name

The shipping name can be anything you want to call the shipping method. For example, you can name the shipping method "UPS", "FED EX", or whatever you want to call it.

Calculation Method

The calculation method can be one of four values:
Shipping Table

The shipping table is a list of value=rate pairs separated by commas and can best be described in an example.

Suppose you want to calculate shipping base on the subtotal and the shipping table is specified as:
"10=Ptas1.00,20=Ptas2.00,30=Ptas3.00,Ptas4.00"
This table would be interpreted as: for orders with subtotals between Ptas0.00 and Ptas10.00, shipping is Ptas1.00, for orders with subtotals between Ptas10.00 and Ptas20.00, shipping is Ptas2.00, for orders with subtotals between Ptas20.00 and Ptas30.00, shipping is Ptas3.00, and for all subtotals greater than Ptas30.00, shipping is Ptas4.00.

If you were to use the same shipping table to calculate shipping based on weight, the table would be interpreted as: for orders with weight totaling between 0 and 10, shipping is Ptas1.00, for orders with weight totaling between 10 and 20, shipping is Ptas2.00, for orders with weight totaling between 20 and 30, shipping is Ptas3.00, and for all orders with weight totaling more than 30, shipping is Ptas4.00.


PUTTING IT ALL TOGETHER

The shipping parameter is made by putting the Shipping Name, Calculation Method, and Shipping Table together in one comma separated string. As an example:

 <PARAM NAME=shipping      VALUE="UPS,BY_SUBTOTAL,20=Ptas5.00,35=Ptas7.00,50=Ptas10.00,Ptas15.00">

This shipping parameter would be interpreted as: Call this shipping method "UPS", Calculate the shipping based on "SUBTOTAL", and for subtotals up to Ptas20 charge Ptas5.00 shipping, for subtotals up to Ptas35 charge Ptas7.00 shipping, for subtotals up to Ptas50 charge Ptas10.00 shipping, and for subtotals greater than Ptas50 charge Ptas15.00 shipping.



SPECIFYING MULTIPLE SHIPPING OPTIONS

You can specify multiple shipping methods/calculations by just separating each one with a semicolon (;).

<PARAM NAME=shipping     VALUE="UPS,BY_SUBTOTAL,20=Ptas5.00,35=Ptas7.00,50=Ptas10.00,Ptas15.00;
                                FED EX,BY_WEIGHT,10=Ptas5.00,20=Ptas10.00,Ptas25.00;
                                US Air Mail,BY_QUANTITY,3=Ptas3.00,6=Ptas5.00,Ptas7.50;
                                Over Night,FLAT_RATE,Ptas20.00">


NOTE: DO NOT include a semicolon after the last shipping option.