June 26, 2007
Shipping Rate Provider Suite Amazon Shipping Sample
This example shows how to use the Shipping Rate Provider Suite to provide shipping options like Amazon.com:
Before
These are the shipping options that appear on Amazon.com during checkout...
After
Here is our version...
Each option has specific rules to follow as shown here:
| FREE Super Saver Shipping |
- Show $0 shipping cost to customer, but behind the scenes calculate the packaging for the shipping department to use according to the following rules.
- Items that weigh 13 oz. or less should be sent by USPS First Class in packaging that weighs 1 oz.
- Items that weigh more than 13 oz. should be sent by USPS Parcel Post in packaging that weighs 1/4 pound.
|
| Standard Shipping |
- Use UPS Ground for everything.
- Divide the order into 70# packages with packaging that weighs 1/4 pound.
|
| Two-Day Shipping |
- Use DHL Second Day for everything.
- Divide the order into 70# packages with packaging that weighs 1/4 pound.
- Show the expected delivery date to the customer.
|
| One-Day Shipping |
- Use DHL Express for everything.
- Divide the order into 70# packages with packaging that weighs 1/4 pound.
- Show the expected delivery date to the customer.
|
To implement this logic we are going to need 5 separate carrier quotes:
- USPS First Class
- USPS Parcel Post
- UPS Ground
- DHL Second Day
- DHL Express
This will require 4 separate shipping methods (both DHL quotes can come from one shipping method). The first two will be combined into one quote using the Package Rules provider. Let's get started...
Requirements
- Shipping Rate Provider Suite 2.5
- USPS Account
- UPS Account
- DHL Account
Steps
First we will create the 5 carrier quotes.
- Create a shipping method called USPS First Class using the US Postal Service shipping provider.
- Select the First Class service.
- Create a shipping method called USPS Parcel Post using the US Postal Service shipping provider.
- Select the Parcel Post service.
- Create a shipping method called UPS Ground using the UPS provider.
- Select the Ground service.
- Create a shipping method called Express Shipping using the DHL US shipping provider.
- Create a new Packaging Rule called Default Packaging with the following settings:

Packaging: 0.25 pounds
Criteria: Weight ≤ 70
- Uncheck the Express 10:30 A.M., Express Saturday, Next Afternoon, and Ground services.
- Change the Express display name to†:
One-Day Shipping --<span style="font-weight:bold;color:green">[[description]]</span>
- Change the Second Day display name to:
Two-Day Shipping --<span style="font-weight:bold;color:green">[[description]]</span>
† HTML is allowed in the description as long as you encode it. [[description]] will be replaced by DHL's service level description.
Now we need to create the shipping method that will combine USPS First Class and USPS Parcel Post into one Super Saver quote.
- Create a shipping method called FREE Super Saver Shipping (5-9 business days) using the Package Rules provider.
- Adjust the final cost by -100% (so that it appears as free shipping to the customer).
- Create a new Packaging Rule called First Class with the following settings:

Packaging: 0.0625 pounds
Criteria: Weight ≤ 0.8125.
This will move items light weight items into packages with a maximum weight of 13 oz. including the packaging (which weighs 1 oz).
- Create a new Packaging Rule called Default Packaging with the following settings:

Packaging: 0.25 pounds
Criteria: Packaging Name = (blank)‡
- Add a new Shipping Cost Rule with the following settings:

When Packaging Name = First Class, Use Rate From "USPS First Class" × 1.
- Edit the default Shipping Cost Rule to use the rate from USPS Parcel Post.

‡ Where (blank) is literally blank, not the word.
Finally we need to create one more shipping method that will override the UPS Ground display name and add packaging that weighs 0.25 pounds.
- Create a shipping method called Standard Shipping (3-5 business days) based on the Package Rules provider.
- Add a new Packaging Rule called Default Packaging with the following settings:

Packaging: 0.25 pounds
Criteria: Weight ≤ 70
This will create packages with a maximum weight of 70 pounds including the packaging (which weighs 1/4 pound).
- Edit the default Shipping Cost Rule to use the rate from UPS Ground.

That's it. Now place a test order and you will see 4 rate quotes:

No matter which rate your customer selects, the Shipping Rate Provider Suite will create a set of suggested packages for your shipping department showing exactly which items go in each package...even if they choose FREE Standard Shipping.
This site looks much better in a browser that supports current web standards, but it is accessible to any browser.
Download one now
Some parts of this site will not work effectively on this older browser.
Please consider
updating your browser