I have a shipping discount with UPS and want to know how that can show up in the shipping calculator/total
I have a shipping discount with UPS and want to know how that can show up in the shipping calculator/total
Is it a flat $ discounr, a standard %, or what?
Zen-Venom Get Bitten
flat rate % just for Next Day Air
Anyone?
Ok I found this
http://www.zen-cart.com/forum/showth...pping+discount
Question is where do I add the 18% discount number?
(below is a copy from the link above. I need to know where to put my 18% discount.
I am assuming is goes where the $discount = .75; is and if that is the case do I just put .18? I wanted to double check before I go messing with things
// EOF: UPS USPS
echo 'I SEE ' . $type . '<br>';
$discount = 0.00;
if ($type == '1DA') {
$discount = .75;
}
$methods[] = array('id' => $type,
'title' => $this->types[$type],
'cost' => (($cost * $discount) + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
anyone?
You need to be careful ... if you use $discount of .75 when this is true, but then use $discount of 0.00 when not true, then you have $cost * 0.00 when not true ... and that would be 0.00 ...
You might set the default to 1.00 for the $discount and then it would be altered to .75 for the $discount when the condition is met ...
To test it, run this without the discount set ... then run again with the discount set and see if your discount is applied correctly ...
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!
I don't know about the shipping calculator, but would it be too complicted to set the shipping rates?
I'm in europe so...
1kg = €1
2kg = €1.50
3kg = €2
and then just change all the amounts by the percentage? so 5% discount =
1kg = €.95
2kg = €1.43
3kg = €1.90
Or is that not helpful cos you want to keep the calculator?
Bookmarks