Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    red flag 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
    Code:
    Warning:  Division by zero in /home/alifina/public_html/boutique/includes/modules/order_total/ot_coupon.php364

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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?
    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!

  3. #3
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Jun 2006
    Posts
    21
    Plugin Contributions
    0

    Default 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. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Error with coupon and GV

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

  6. #6
    Join Date
    Jun 2006
    Posts
    21
    Plugin Contributions
    0

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

  7. #7
    Join Date
    Jun 2006
    Posts
    21
    Plugin Contributions
    0

    Default 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!!

 

 

Similar Threads

  1. Coupon error with restrictions set
    By LissaE in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 12
    Last Post: 29 Jul 2011, 06:59 PM
  2. Following error: Which coupon and how do I turn it off?
    By kylex in forum Basic Configuration
    Replies: 2
    Last Post: 3 May 2010, 10:43 PM
  3. Coupon error - with sales tax?
    By fright-rags in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 8 Apr 2010, 12:17 AM
  4. Error With Coupon
    By godspeed27 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 16 Jun 2007, 03:55 AM
  5. Replies: 5
    Last Post: 23 Nov 2006, 04:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg