close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

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 Eric Mittman | 517 views | 1 replies |

tfrank302722

Weight of 0 means no shipping?

Hi,

I'm using PowerStore 3 and I have some "products" that will never ship. I was thinking if I make the weight zero, then the shipping would not appear because zero means no weight. It seems as though I'm getting a default with UPS where the shipping is added regardless of the weight being zero.

The products aren't digital goods but things like registration fee and sponsorships. All they are are dollar amounts. They won't need any shipping fee added. PowerStore 3 seems to only let you have shipping either on or off globally. Is there a way to toggle shipping on or off for each product? I assume with some customization. If so, which file would I look at to add some sort of condition. I'm thinking I could name a SKU with some sort of trigger to filter. Then if the SKU trigger is true, calculate the shipping as zero dollars. Or, should this be done within ecart?

Thanks

Sign in to reply to this post

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.

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