Zen Cart Logo

Error with coupon and GV

Locked

Views: 2,118

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
26 Jan 2008, 3:35 AM
#1
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Error with coupon and GV

I got this error after entering a discount coupon and Gift Certificate at the same time. What give?

on line ```
Warning: Division by zero in /home/alifina/public_html/boutique/includes/modules/order_total/ot_coupon.php364

27 Jan 2008, 4:16 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Error with coupon and GV

I cannot reproduce this error ...

What version of Zen Cart are you using?

Clean install or an Upgrade?

How did you install? How did you Upgrade?

Can you reproduce this error any time?

What add-ons do you have?

27 Jan 2008, 9:34 AM
#3
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: Error with coupon and GV

I'm going to try this again, but to answer you questions:

version 1.3.8a (upgraded following the upgrade instructions)

I'm going try this again. The order went through fine after the error. This was an order paid via PayPal Express.

I'll update this again shortly.

thanks

5 Mar 2008, 9:30 PM
#4
enric avatar

enric

New Zenner

Join Date:
Jun 2006
Posts:
18
Plugin Contributions:
0

Re: Error with coupon and GV

Hi to all,
Any updates with this thread? I get the same error when trying to redeem a Discount Coupon.
The version of my zen-cart is also 1.3.8a, the only add on I have is MZMT Ups shipping.
Same thing with my older zen-cart 1.3.4 is working fine (no errors).... this is the complete error I get:

Warning: Division by zero in /var/www/vhosts/mydomain/httpdocs/zen_1_3_8a/includes/modules/order_total/ot_coupon.php on line 364

5 Mar 2008, 9:55 PM
#6
enric avatar

enric

New Zenner

Join Date:
Jun 2006
Posts:
18
Plugin Contributions:
0

Re: Error with coupon and GV

Dr.Byte

I also found this post which is in ot_group_pricing.php I am having the issue with ot_coupon.php in line 366, I tried to apply the same solution you suggested with no luck... I added the code in red after line 323 in the ot_coupon.php page (which has the same bit of code there) .. but still get the same error...

5 Mar 2008, 11:05 PM
#7
enric avatar

enric

New Zenner

Join Date:
Jun 2006
Posts:
18
Plugin Contributions:
0

Re: Error with coupon and GV

Sorry DrByte,

Seems to be working with the same solution, maybe I was having problems with the ftp client and the code I had modified was not being uploaded, after many attempts it is working fine now...
So the suggetion from that thread works out fine

Many thanks!!