# Help With Origin Shipping Rate Calculation

Thread began 8/27/2012 7:35 am by sfranzken73972 | Last modified 8/29/2012 2:03 pm by Jason Byrnes | 866 views | 6 replies |

## 8/27/2012 7:35 am  |  #1 sfranzken73972

### Help With Origin Shipping Rate Calculation

I need to setup a rule that is based on subtotal of cart and country of origin.

How would I go about setting up a custom expression that says for example, For Domestic orders shipped within U.S., for orders that are \$.01 to \$40.00 (cart subtotal) = \$3.00 shipping and is United States use this formula? How would I write that?

Because below I have to make a distinction that excludes the United States for international rates that would be if order is .01 to \$40.00 = \$12.00 and NOT United States?

How would I go about creating a custom shipping method for this, would this come in to play on the page where the customer enters their information on country and cc info?

shopping-cart.php

Here are the rules.

For Domestic: If the purchase is:

\$.01 to \$40.00 = \$3.00 shipping

40.01 - 80.00 = 5.00 shipping

80.01 - and up = 7.00 shipping

Can you set the price for International shipping.

.01 to \$40.00 = \$12.00

40.01 to 80.00 = \$15.00

80.01 to and up = \$17.00

## 8/27/2012 3:38 pm  |  #2 Jason ByrnesWebAssist

when the checkout form posts to the confirm page, the shipping country is stored in a session variable named:
eCartCheckoutForm_shipping_country

you would need to create separate shipping rules for each price break, for domestic and international.

the rules will set the price breaks by using the Based on taxable total trigger, but then add another trigger for session Variable is set "eCartCheckoutForm_shipping_country" and Based on Session Variable value.

for the domestic shipping rules use:
session variable "eCartCheckoutForm_shipping_country" is "=" a value of "US"

for the international rules use:
session variable "eCartCheckoutForm_shipping_country" is "!=" a value of "US"

## 8/29/2012 4:11 am  |  #3 sfranzken73972

### Quick Question

I dont see a trigger in shipping tab for Based on taxable total trigger; see screenshot to be sure Im doing this correctly thus far?

## 8/29/2012 10:19 am  |  #4 Jason ByrnesWebAssist

your looking in the list of calculations type list, not the triggers list.

## 8/29/2012 10:22 am  |  #5 sfranzken73972

### Ok

Ok so they are all triggers then I need to create?

## 8/29/2012 2:03 pm  |  #7 Jason ByrnesWebAssist

yes, that is correct for the triggers.

in the calculation section, use a flat rate calculation of 3.00

## Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

## Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

## Everything else!

Close Window

Account or customer service questions?

Need technical support?

Content

Layout

Ease of use

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Window

## We were unable to retrieve the attached file

Close Window

### Attach and remove files

• Text Formatting
• Insert Element
• Block Formatting
• Cancel
Close Window

Close Window

#### This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --