close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

shipping weight can't be zero

Thread began 12/10/2009 12:44 pm by xberniex250371773 | Last modified 12/10/2009 2:33 pm by Jason Byrnes | 743 views | 1 replies |

xberniex250371773

shipping weight can't be zero

an transaction error message when clicking on the express checkout and clicking on the checkout button on the bottom of the form on the checkout page I receive a shipping error message saying something about the shipping weight can't be zero when there is .01 weight in the cart. Do you know what it is I'm doing wrong? Is it the codes I got from paypal maybe I entered the wrong codes??

Thanks guys

Sign in to reply to this post

Jason ByrnesWebAssist

Most of the shipping providers require that the weight be at least 1 pound. You con force a total weight of under a pound to be 1 pound by editing the line that passes the weight.

change:

php:
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".WA_eCart_FormatNumber($<your cart name>->TotalColumn('TotalWeight'), true, 1)  ."";



to:

php:
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".WA_eCart_FormatNumber((<your cart name>->TotalColumn('TotalWeight') >= 1)?$<your cart name>>TotalColumn('TotalWeight'):1, true, 1)  ."";





where <your cart name> is the name of your cart object.

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