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

rating

Packaging and USPS charges question

Thread began 6/04/2012 2:28 am by lr_leal239405 | Last modified 6/05/2012 10:56 am by Jason Byrnes | 365 views | 1 replies |

lr_leal239405

Packaging and USPS charges question

On my checkout I have it working with the USPS calculation. The post office limits the package to 70 lbs. On my checkout, if the order is over 70 lbs. it simply charges $0. On the shipping behavior there's only two options: to ship everything in one package or to package every item separately. However, neither one applies to this website. They package up to 10 items and then another package is used. Therefore the 70 lb. limit would never apply since no package weighs anything close to that. What do I do since neither one of the available options is true?

Sign in to reply to this post

Jason ByrnesWebAssist

One of the settings on the last page of the shipping behavior is Quantity, this is the quanity of boxes that will ship.

You could use a calculation to dynamically break the shipment in 70 pound intervals, for example:

php:
<?php echo ceil($yourCart->TotalColumn("TotalWeight") / 70); ?>



would set the quantity to 1 if the total weight is under 70, if it is over 70 lbs, say 90 lbs, it will set the quantity to 2

then for the weight, you could use this calculation:

php:
<?php echo $yourCart->TotalColumn("TotalWeight") / (ceil($yourCart->TotalColumn("TotalWeight") / 70)); ?>



which would set the weight for each box dynamically, your 90lb cart would now ship in 2 boxes, each would weigh 45 lbs

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