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

Weight of 0 means no shipping?

Thread began 2/25/2010 1:52 pm by tfrank302722 | Last modified 2/26/2010 1:42 pm by tfrank302722 | 538 views | 1 replies

Eric Mittman

You could do this by customizing the code for your shipping on the confirm pages. It is a little custom but I think this would give you the correct result.

You can add two more conditions to the shipping. The first will be added to the high level check against the shipping setting in the globals file. If you are using UPS then on you confirm page the line currently looks like this:

php:
if (($WAGLOBAL_Shipping_Enabled != "0")) {

  //WA eCart (Copyright 2007, WebAssist)
  //WA eCart UPS Shipping - UPS



You would first update this condition to be like this:

php:
if (($WAGLOBAL_Shipping_Enabled != "0") && (WA_Store_Cart->TotalColumn('TotalWeight') > 0)) {

  //WA eCart (Copyright 2007, WebAssist)
  //WA eCart UPS Shipping - UPS



This will ensure that your cart has weight before calculating the shipping, if there is no weight there will be no shipping. The next thing to do is add another condition to the loop within this shipping quote server behavior, a little further down in the code look for this line:

php:
if (WA_eCart_UPS_IsTrueValue("true")) {



Update it to be like this:

php:
if (WA_eCart_UPS_IsTrueValue("true") && ($WA_Store_Cart->DisplayInfo("Weight") > 0)) {



This code is checking that the specific item in the cart has a weight, if not it will skip that item and move to the next. Give this a try and let us know if you get the result you are looking for. Remember to backup your confirm page first. Also, you would need to do the same thing on your pp_confirm page if you are using PayPal Express Checkout.

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