Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Adding a UPS shipping discount

Adding a UPS shipping discount

Locked

Views: 1,635

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
3 Feb 2010, 10:08 PM
#1
lilguppy avatar

lilguppy

New Zenner

Join Date:
Jan 2010
Posts:
96
Plugin Contributions:
0

Adding a UPS shipping discount

I have a shipping discount with UPS and want to know how that can show up in the shipping calculator/total

3 Feb 2010, 10:12 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding a UPS shipping discount

Is it a flat $ discounr, a standard %, or what?

3 Feb 2010, 10:13 PM
#3
lilguppy avatar

lilguppy

New Zenner

Join Date:
Jan 2010
Posts:
96
Plugin Contributions:
0

Re: Adding a UPS shipping discount

flat rate % just for Next Day Air

3 Feb 2010, 11:35 PM
#4
lilguppy avatar

lilguppy

New Zenner

Join Date:
Jan 2010
Posts:
96
Plugin Contributions:
0

Re: Adding a UPS shipping discount

Anyone? :cry:

4 Feb 2010, 12:08 AM
#5
lilguppy avatar

lilguppy

New Zenner

Join Date:
Jan 2010
Posts:
96
Plugin Contributions:
0

Re: Adding a UPS shipping discount

Ok I found this
http://www.zen-cart.com/forum/showthread.php?t=139672&highlight=shipping+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);

4 Feb 2010, 7:15 PM
#6
lilguppy avatar

lilguppy

New Zenner

Join Date:
Jan 2010
Posts:
96
Plugin Contributions:
0

Re: Adding a UPS shipping discount

anyone? :shocking:

5 Feb 2010, 2:49 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Adding a UPS shipping discount

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

5 Feb 2010, 3:35 PM
#8
epsonprintersrock avatar

epsonprintersrock

New Zenner

Join Date:
Jan 2010
Posts:
49
Plugin Contributions:
0

Re: Adding a UPS shipping discount

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?