Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2008
    Posts
    8
    Plugin Contributions
    0

    Default Error generating a coupon

    Version 1.38


    I get this error

    Warning: Division by zero in /home/something/public_html/admin/includes/classes/split_page_results.php on line 39
    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-0, 0' at line 1
    in:
    [select coupon_id, coupon_code, coupon_amount, coupon_type, coupon_start_date,coupon_expire_date,uses_per_user,uses_per_coupon,restrict_to_p roducts, restrict_to_categories, date_created,date_modified, coupon_active, coupon_zone_restriction from zen_coupons where coupon_active='Y' and coupon_type != 'G' limit -0, 0]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    I check my english file as the following link
    https://www.zen-cart.com/tutorials/index.php?article=27

    my file like this @setlocale(LC_TIME, 'en_US.ISO_8859-1')

    what is the problem, I have to change? please

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

    Default Re: Error generating a coupon

    Could you peek at the settings in Configuration ... GV Coupons ...
    Maximum Discount Coupon Report Results Per Page
    Number of Discount Coupons to list on Reports PageMax sure the value is greater than 0 ...

    If you do not see that setting ... did you upgrade recently?

    Can you go to the Tools ... Developers Tool Kit ... and in the top input box enter:
    MAX_DISPLAY_SEARCH_RESULTS_DISCOUNT_COUPONS_REPORTS

    select NONE in the dropdown and click Search ...

    Does anything come up?
    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
    Dec 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: Error generating a coupon

    Hi Ajeh thank u for an answer


    I downloaded version 1.38 I have not updated.
    I have the gv coupon as follows
    Default Order Status For Zero Balance Orders Processing [2]
    Length of the redeem code 10
    New Signup Discount Coupon ID# 0
    New Signup Gift Voucher Amount
    Maximum Discount Coupons Per Page 0
    Maximum Discount Coupon Report Results Per Page 0
    in the developer tool kit, I get this

    Lookup CONSTANT Definitions
    Key: MAX_DISPLAY_SEARCH_RESULTS_DISCOUNT_COUPONS_REPORTS
    Title: Maximum Discount Coupon Report Results Per Page
    Description: Number of Discount Coupons to list on Reports Page
    Value: 0
    Group: ID#16 GV Coupons
    I want is to create a coupon that is free with the purchase of a quantity

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

    Default Re: Error generating a coupon

    Maximum Discount Coupons Per Page 0
    Maximum Discount Coupon Report Results Per Page 0
    Could you change the 0 per page on both of these to something like 10 or 20 per page so you do not have division by 0 errors?
    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!

  5. #5
    Join Date
    Dec 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: Error generating a coupon

    Already fixed...thanks again

    I want to create a coupon for a free product with the purchase of 20 or more

  6. #6
    Join Date
    Jan 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: Error generating a coupon

    Hi, I got errors in generating coupon too, but different problem:

    Discount Coupons

    Coupon Name Coupon Amount Coupon Code Status Starts Expires Action
    $0.00 N 11/30/2036 11/30/2036 Info
    $0.00 N 11/30/2036 11/30/2036 Info
    $0.00 N 11/30/2036 11/30/2036 Info
    $0.00 N 11/30/2036 11/30/2036 Info
    $0.00 N 11/30/2036 11/30/2036
    Displaying 1 to 5 (of 5 coupons)


    I tried to add a new coupon but every time I save it the coupon name becomes blank and is saved as inactive coupon with the dates indicated above. I can't delete the inactive coupons too.

    Please advise how will I resolve this.

    Regards,

    Cherry
    cherryso.com

 

 

Similar Threads

  1. I get this error on my discount coupon at checkout:'This coupon is not available yet'
    By WHHammond in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 13
    Last Post: 15 Sep 2010, 03:09 PM
  2. Report Generating
    By Advantage Online in forum General Questions
    Replies: 4
    Last Post: 28 Jul 2010, 07:08 PM
  3. Error Message When Generating XML Sitemap For Google
    By nicedood in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 24 Feb 2010, 12:35 PM
  4. Generating previews?
    By sayitanywhere in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 7 Jun 2007, 04:22 AM
  5. Save sysem settings generating error
    By huwmac in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 3 Jun 2007, 09:44 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