close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

shipping variables

Thread began 3/09/2010 8:21 pm by JBWebWorks | Last modified 3/10/2010 6:51 pm by Eric Mittman | 2113 views | 3 replies |

JBWebWorks

shipping variables

not sure how to write shipping rules that have several variables.

three item types
1
2
3

owner wants these shipping variables
item 1 and item 3
qty 1-3 shipping is $6.50
4 and over shipping is $10.70

item 2
qty 1 shipping is $6.50
2 and over shipping is $10.70

Any combination of item 1, 2 or 3
shipping is $10.70

thanks
Jim B

Sign in to reply to this post

Eric Mittman

You can set these shipping charge rules directly in the cart object. There is no need for any variables, you can write the rules like how you have them here.

For the first example you would craft the rule like this:

Presence of an item in the cart, if item 1 exists in the cart
AND quantity of a specific item in the cart, if the quantity of item 1 in the cart is <= 3
OR Presence of an item in the cart, if item 3 exists in the cart
AND quantity of a specific item in the cart, if the quantity of item 3 in the cart is <= 3

The charge would be a flat rate of 6.50. I'm including a screen shot of this so you have a visual reference as well. You should be able to craft the other charge rules in a similar fashion.

Sign in to reply to this post

JBWebWorks

thanks Eric

that helped me a lot.

one problem i am having is different shipping rules overlapping.

for instance i have the rule for item 1 and 3 qty being <= 3 shipping is $6.50
another rule is item 2 qty = 1 shipping is $6.50
another rule is qty of unique items >= 2 shipping is $10.70

so if the cart has 1 of item 1 shipping is $6.50 and cart also has 1 of item 2 shipping is $6.50 and the combination of item 1 and 2 has shipping of $10.70, so total shipping is $23.70.

Sign in to reply to this post

Eric Mittman

You will need to decide what shipping rule will take precedence, then for the other shipping rules you can check on the opposite of the conditions for the main rule.

So if you wanted the first rule in your scenario to take precedence you would need to alter the other two rules like this:

item 2 qty = 1 shipping is $6.50
In this rule you would need to add the opposite condition of the first rule, so in here you would add a condition that says 'and if item 1 or item 3 does not exist in the cart'. You would do the same in third rule, you would need to add a condition to make sure that items 1 and 3 are not in the cart.

The charge rules are very flexible and you can account for many situations, you just need to determine in advance how exactly you would like the charges to occur then based on this configure them to fit your scenario.

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