is there a way i can change some script to tell zen cart to multiply the tare or negative tare rather, by how many items are in the shopping cart?
is there a way i can change some script to tell zen cart to multiply the tare or negative tare rather, by how many items are in the shopping cart?
per additional item after the first item,
like 1.5 lbs per item after first.
Using the Developers Tool Kit ... do a search on:
SHIPPING_BOX_WEIGHT
This will show you all of the files where the Tare is addressed and you can customize that the way you need it ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
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!
can anyone give me any idea of the code format i would use for taking off 1.5 lbs per each additional item in shopping cart after the first item?
maybe multiplying the tare by -1.5?
In the shipping.php class the Tare is handled:
you need to adjust the formula for how the $shipping_weight is managed based on the Tare ...Code:switch (true) { // large box add padding case(SHIPPING_MAX_WEIGHT <= $shipping_weight): $shipping_weight = $shipping_weight + ($shipping_weight*($zc_large_percent/100)) + $zc_large_weight; break; default: // add tare weight < large $shipping_weight = $shipping_weight + ($shipping_weight*($zc_tare_percent/100)) + $zc_tare_weight; break; }
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
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!
well, i'm retarded, all I had to do was set the product weight to 1.5 lbs less, and put in a positive tare weight of 1.5 lbs; I swear I tried that before and it didn't work, oh well, I only lost 3 days worth of work. Se la vi.
Bookmarks