VPCARTallows merchants to setup shipping by state. To use this feature,you need to set the following Software Configuration options:
Xshippingbystate |
Setting this to Yes tells VPCART that the state field is used when reading records in the shipmethods table. This allows you to use different shipping values in our supplied shipping calculation, such as weightrange, pricerange, etc. The value “None” can be used instead of a state abbreviation in the shipmethods table when you do not want to have records for all states. |
Xincludestates |
Setting this to Yes tells VPCART to generate a dropdown list of states on the customer form rather than allowing them to enter their own statemanually. |
For each specific state, you need to create the appropriate shipping records as normal.Please also include in the title of the shipping record which state the shipping record is used for.
You also need to create one set of records and put "none" into the state field so that states that do not have a specific record will obtain their shipping rates from the "none" set of records.
Note: This method will not automatically change the shipping options displayed on shopcustomer.asp based on the state chosen.If the customer chooses a method not supported by their state, they will be alerted.
Example: Shipping by State and WeightRange
Ensure that all products have a value in their weight field and that the following configuration settings are set:
Xshippingbystate |
Yes |
Xshippingcalc |
WEIGHTRANGE |
Xincludestates |
Yes |
In your shop administration, go to Advanced Settings > Shipping & Handling.
Here you will need to add all of your records for each state - each state will need their own specified set of weight ranges.
In this example, we have set up weight ranges for the New York, California, and None (which incorporates any state other than those you specify).
The first range for
the New York is 0-2 and we have set a base cost of $5 for this:
We set up similar ranges for the California and None:
Keep adding more states and more ranges until your
requirements are met.
NOTE : You can also combine shipping by state with
shipping by country together.