Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    16
    Plugin Contributions
    0

    Default Re: Warning/Debug when redeeming voucher at Checkout

    Quote Originally Posted by Ajeh View Post
    As with your other post, change line:
    Code:
                $ratioTax = $adjustedTax/$order->info['tax'];
    to read as:
    Code:
                $ratioTax = (isset($order->info['tax']) && $order->info['tax'] != 0) ? $adjustedTax/$order->info['tax'] : 0;
    see if that resolves the issues you are having on division by zero on the Discount Coupons when using Taxable and non-taxable products ...
    Thank you very much - That sorted it

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

    Default Re: Warning/Debug when redeeming voucher at Checkout

    Thanks for the update that this was able to correct the issues you were having on the division by 0 error ...
    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!

 

 

Similar Threads

  1. Replies: 10
    Last Post: 6 Sep 2014, 02:55 AM
  2. v151 "Warning: An error occurred" and no debug logs
    By emiLy in forum General Questions
    Replies: 13
    Last Post: 2 Apr 2014, 07:37 PM
  3. Replies: 8
    Last Post: 19 Sep 2012, 03:37 AM

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