I got this error after entering a discount coupon and Gift Certificate at the same time. What give?
on lineCode:Warning: Division by zero in /home/alifina/public_html/boutique/includes/modules/order_total/ot_coupon.php364
I got this error after entering a discount coupon and Gift Certificate at the same time. What give?
on lineCode:Warning: Division by zero in /home/alifina/public_html/boutique/includes/modules/order_total/ot_coupon.php364
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?
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!]
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'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
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
Is this the same issue?
http://www.zen-cart.com/forum/showth...733#post487733
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
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...
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!!