Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Coupon restriction error

    I made a new discount coupon and wanted to restrict it to some products.

    In english everything looks ok but in dutch im getting this error:

    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, MAX_DISPLAY_RESTRICT_ENTRIES' at line 1
    in:
    [select * from coupon_restrict where coupon_id = '' and category_id != '0' limit -0, MAX_DISPLAY_RESTRICT_ENTRIES]
    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 totally dont know what it is.

    Further when i do a test order its giving the discount to all the products and not only to the products i restricted.

    Hopefully someone can help me with this.

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

    Default Re: Coupon restriction error

    Check your language file for:
    /your_secret_admin_dir/includes/languages/english/coupon_restrict.php

    Line #27 : define('MAX_DISPLAY_RESTRICT_ENTRIES', 20);

    Do you have that define around line 27?
    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: v1.5.5]
    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
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Re: Coupon restriction error

    Thank you for your response!

    Yes I have that in the english version

    Is also saw that the dutch coupon_restrict.php is totally different???
    Last edited by dre; 9 Mar 2011 at 04:57 PM.

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

    Default Re: Coupon restriction error

    And if you look at the language file that should contain this setting in:
    /your_secret_admin_dir/includes/languages/english/coupon_restrict.php

    Do you have that define around line 27 in the file?
    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: v1.5.5]
    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
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Re: Coupon restriction error

    On line 28 i have this:

    define('MAX_DISPLAY_RESTRICT_ENTRIES', 20);

    I also copied the english over the dutch and the databas error is gone . Only the restrictions are not working its giving discoutn to all products

  6. #6
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Re: Coupon restriction error

    I think I fixed it . Copied the english version over the dutch one and the database error is gone.


    And the resctriction problem I had to disallow al categories and allow only the choosen products.

    Thank you for your help !!!!

    The strange thing was that the dutch version was totally different then the english

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

    Default Re: Coupon restriction error

    Thanks for the update that you now have this working ...

    It could be that your language file was made from an older version or some other changes were made to it and left out some of the defines ...
    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: v1.5.5]
    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!

  8. #8
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Coupon restriction error

    I had the same problem as mentioned in the above posts. Fixed it by copying the missing lines to the Dutch version of the file. Th Dutch language pack is based on version 1.38a. So it apparently needs some extra updates besides the existing 1.39 update. We'll get it fixed on the Dutch forum

 

 

Similar Threads

  1. Coupon Restriction
    By enzo-ita in forum General Questions
    Replies: 2
    Last Post: 29 Nov 2010, 09:28 AM
  2. Coupon Restriction Issue
    By disciple in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 11
    Last Post: 26 Sep 2010, 06:56 AM
  3. Coupon Restriction Options
    By pdnls in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 16 Aug 2010, 02:27 PM
  4. Admin Profiles mod error: denied access to Coupon Restriction settings ???
    By NicholeAnn in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 14 Feb 2008, 05:20 AM
  5. Coupon restriction logic
    By dbrewster in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 3 Jul 2006, 06:42 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR