close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

$8 Flat rate for Canada/USA; $20 for all other countries

Thread began 4/28/2012 4:22 pm by pete | Last modified 5/11/2012 3:35 pm by Jason Byrnes | 2197 views | 10 replies |

pete

$8 Flat rate for Canada/USA; $20 for all other countries

Would anyone be able to please help me set this up? I have the $8/Can-USA working just fine. I can't seem to get the $20 rate to kick in when orders come in from places like UK or Australia.
Thx,
Pete

Sign in to reply to this post

Jason ByrnesWebAssist

create a shipping rule as:

Triggers:
Session Variable exists "eCartCheckoutForm_shipping_country"

AND
Based on session variable Value:
If the Session variable "eCartCheckoutForm_shipping_country" is "!=" a value of "US"

AND
Based on session variable Value:
If the Session variable "eCartCheckoutForm_shipping_country" is "!=" a value of "CA"


Calculation:
Flat Rate Shipping of "20"

Sign in to reply to this post

pete

Thanks Jason,

Should it be OR us/ca? The condition couldn't be that a buyer would be from both countries, right?


Triggers:
Session Variable exists "eCartCheckoutForm_shipping_country"

AND
Based on session variable Value:
If the Session variable "eCartCheckoutForm_shipping_country" is "!=" a value of "US"

OR
Based on session variable Value:
If the Session variable "eCartCheckoutForm_shipping_country" is "!=" a value of "CA"

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you are correct, it should use OR.

Sign in to reply to this post

pete

OK, thanks!
-Pete

Sign in to reply to this post

pete

Need some more assistance on the shipping ($8 Can/US and $20 others, etc)

Hi again Jason,

I fear that my client's needs are a bit more complex. Here's the summary of what shipping requirements I need:

If a customer buys $100.00 or more, there is no charge for shipping. Otherwise shipping is $20.00 unless they are from Canada or the US in which case shipping is $8.00.

Firing up my trusty eCart interface, I have the following conditions in one rule:

Total Number of Items >0;
AND SubTotal of Items >= $100.00
AND If Session Variable Exists: eCartCheckoutForm_shipping_country
OR Based on session variable value: eCartCheckoutForm_shipping_country = CA
OR Based on session variable value: eCartCheckoutForm_shipping_country = US

The calculation is Flat Rate = $8

So, Canadians and Americans are now paying $8; while anyone else is not being charged shipping. Do I need a second rule here somewhere?

Thanks,
Pete

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you need another rule to charge 20.00 for everyone else:

Total Number of Items >0;
AND SubTotal of Items >= $100.00
AND If Session Variable Exists: eCartCheckoutForm_shipping_country
OR Based on session variable value: eCartCheckoutForm_shipping_country != CA
OR Based on session variable value: eCartCheckoutForm_shipping_country != US

The calculation is Flat Rate = $20

Sign in to reply to this post

pete

Hmmm.... Now everyone is being charged $28 for shipping even if the cart is over $100.00.

I made a couple of changes because the logic didn't deal with the free shipping well. So my first rule (Canada/US Flat Rate $8 with Free Shipping Over $100) is:

Total Number of Items >0;
AND SubTotal of Items <=$99.99 (changed from >= $100.00)
AND If Session Variable Exists: eCartCheckoutForm_shipping_country
OR Based on session variable value: eCartCheckoutForm_shipping_country = CA
OR Based on session variable value: eCartCheckoutForm_shipping_country = US

The calculation is Flat Rate = $8

The second rule ($20 for all but CA or US) is:

Total Number of Items >0;
AND SubTotal of Items <= $99.99
AND If Session Variable Exists: eCartCheckoutForm_shipping_country
OR Based on session variable value: eCartCheckoutForm_shipping_country != CA
OR Based on session variable value: eCartCheckoutForm_shipping_country != US

The calculation is Flat Rate = $20

I wonder if I need a third rule to deal with the free shipping and then the $8 and $20 rules can be a bit simpler?

Sign in to reply to this post

Jason ByrnesWebAssist

try this for the rules:

Total Number of Items >0;
AND SubTotal of Items <=$99.99 (changed from >= $100.00)
AND If Session Variable Exists: eCartCheckoutForm_shipping_country
AND Custom Condition:
(($_SESSION['eCartCheckoutForm_shipping_country'] == "US") || ($_SESSION['eCartCheckoutForm_shipping_country'] == "CA"))


The calculation is Flat Rate = $8

The second rule ($20 for all but CA or US) is:

Total Number of Items >0;
AND SubTotal of Items <= $99.99
AND If Session Variable Exists: eCartCheckoutForm_shipping_country
AND Custom Condition:
(($_SESSION['eCartCheckoutForm_shipping_country'] != "US") && ($_SESSION['eCartCheckoutForm_shipping_country'] != "CA"))

The calculation is Flat Rate = $20

Sign in to reply to this post

pete

Solved

That's it! You got it working for me now. Thanks a million, Jason!
-Pete

Sign in to reply to this post
loading

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

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 Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

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 --

Uploading file...