Oba-san
- Join Date:
- Sep 2003
- Location:
- Ohio
- Posts:
- 62,757
- Plugin Contributions:
- 1
Repeating Base Weights for Main Shipping Boxes
Try this instead:
// bof: add 6lbs per 4 items
global $cart;
$item_count = $_SESSION['cart']->count_contents();
[B]//$item_count = floor(($item_count/4));
$item_count = ceil(round( ($item_count/4), 1) );
[/B]$zc_tare_weight = $item_count * 6;
$zc_large_weight = $item_count * 6;
// eof: add 6lbs per 4 items
does that work better?
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!