close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

USPS shipping rules

Thread began 7/20/2009 2:35 pm by Stan | Last modified 7/20/2009 4:23 pm by Stan | 1390 views | 6 replies |

Stan

USPS shipping rules

When adding shipping rules to eCart, is it like a case statement where they drop out with the first matching rule?

I have a special lower handling charge to apply when either of two items are added to the cart with nothing else, otherwise for all the rest I want to add the regular handling charge to the USPS rate quote.

Sign in to reply to this post

Ray BorduinWebAssist

I guess you would have to add a column to the cart "RegularRate" and set it to "1" for all items that have a regular rate and set it to "0" for your two special items.

Then create your shipping rules using "based on column subtotal" and use the special rate if the subtotal of "RegularRate" is zero (no regular rate items in the cart only special rate items).

Sign in to reply to this post

Stan

So reading between the line, every rule fires with each cart load?

Sign in to reply to this post

Stan

Do you see anything wrong with modifying the shipping rule by adding a case statement? Of course the obvious, I won't be able to edit in from the cart interface but other than that?

Sign in to reply to this post

Ray BorduinWebAssist

You don't need a case statement... just use two separate rules with different conditions so that one or the other will only fire.

Sign in to reply to this post

Stan

It's sort of hard to define that exclusive rule though. The first rule would be if it's only item A then use the lower handling rate. The second rule is if it's anything else or anything else including item A then use the higher rate. I'm not even sure how to make these exclusive without a case. Your extra column would work. I guess the advantage would be that the handling charge could be changed for items just by changing the database but I will also have to add that data field in and track it all the way through to checkout.

It's hard for me to keep my hands out of the code. I have to figure out how to manipulate the interface to get what I want and then I still find myself going to the code to check the result, at which point I think to myself why didn't I just code this the way I wanted it in the first place. LOL

Sign in to reply to this post

Ray BorduinWebAssist

The shipping "rules" are actually functions. "calculations" are just like any other column except that they aren't set by adding items to the cart they are defined by formulas... they are recalculated any time any column is updated which could effect it.

Any shipping or tax rule will callculate on demand when it is requested. So they aren't really fired with the cart load... they are fired any time you show them on the page or any time the GrandTotal is calculated.

Sign in to reply to this post

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