Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Posts
    83
    Plugin Contributions
    0

    Default Re: Discount coupons for category is not working,error MySQL

    Hi,

    I just checked the files and here they are:

    By the way I am using the dutch versions so you will find here two files of coupon_restrict.php

    admin/includes/language/english

    Code:
    <?php
    /**
     * @package admin
     * @copyright Copyright 2003-2010 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: coupon_restrict.php 16174 2010-05-02 14:10:30Z drbyte $
     */
    
    define('HEADING_TITLE', 'Discount Coupons Product/Category Restrictions');
    define('HEADING_TITLE_CATEGORY', 'Category Restrictions');
    define('HEADING_TITLE_PRODUCT', 'Product Restrictions');
    
    define('HEADER_COUPON_ID', 'Coupon ID');
    define('HEADER_COUPON_NAME', 'Coupon Name');
    define('HEADER_CATEGORY_ID', 'Category ID');
    define('HEADER_CATEGORY_NAME', 'Category Name');
    define('HEADER_PRODUCT_ID', 'Product ID');
    define('HEADER_PRODUCT_NAME', 'Product Name');
    define('HEADER_RESTRICT_ALLOW', 'Allow');
    define('HEADER_RESTRICT_DENY', 'Deny');
    define('HEADER_RESTRICT_REMOVE', 'Remove');
    define('IMAGE_ALLOW', 'Allow');
    define('IMAGE_DENY', 'Deny');
    define('IMAGE_REMOVE', 'Remove');
    define('TEXT_ALL_CATEGORIES', 'All Categories');
    
    define('MAX_DISPLAY_RESTRICT_ENTRIES', 20);
    define('TEXT_ALL_PRODUCTS_ADD', 'Add All Category Products');
    define('TEXT_ALL_PRODUCTS_REMOVE', 'Remove All Category Products');
    define('TEXT_INFO_ADD_DENY_ALL', '<strong>For Add all Category Products, only Products not already set for restrictions will be added.<br />
                        For Delete all Category Products, only Products that are specified Deny or Allow will be removed.</strong>');
    
    define('TEXT_MANUFACTURER', 'Manufacturer: ');
    define('TEXT_CATEGORY', 'Category: ');
    define('ERROR_DISCOUNT_COUPON_DEFINED_CATEGORY', 'Category Not Completed');
    define('ERROR_DISCOUNT_COUPON_DEFINED_PRODUCT', 'Product Not Completed');

    admin/includes/languages/dutch

    Code:
    <?php
    //dutch translation Zencart ; v1.3.7 2007-09-11 by Edwin Wiering ; v1.3.5 2006-09-04 by joostvdl ; dutch translation Zencart v1.2.6d 2005-11-12  by dutchguy 
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |   
    // | http://www.zen-cart.com/index.php                                    |   
    // |                                                                      |   
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    //  $Id: coupon_restrict.php 3666 2006-05-28 21:21:37Z wilt $
    //
    
    define('HEADING_TITLE', 'Kortingsbonnen Artikel/Categorie beperkingen');
    define('HEADING_TITLE_CATEGORY', 'Categorie beperkingen');
    define('HEADING_TITLE_PRODUCT', 'Artikel beperkingen');
    
    define('HEADER_COUPON_ID', 'Kortingsbon ID');
    define('HEADER_COUPON_NAME', 'Naam kortingsbon');
    define('HEADER_CATEGORY_ID', 'Categorie ID');
    define('HEADER_CATEGORY_NAME', 'Categorienaam');
    define('HEADER_PRODUCT_ID', 'Artikel ID');
    define('HEADER_PRODUCT_NAME', 'Artikelnaam');
    define('HEADER_RESTRICT_ALLOW', 'Toestaan');
    define('HEADER_RESTRICT_DENY', 'Weigeren');
    define('HEADER_RESTRICT_REMOVE', 'Verwijderen');
    define('IMAGE_ALLOW', 'Toestaan');
    define('IMAGE_DENY', 'Weigeren');
    define('IMAGE_REMOVE', 'Verwijderen');
    define('TEXT_ALL_CATEGORIES', 'Alle Categorieën');
    ?>
    I copied this from the files,but at the end of admin/includes/languages/english/coupon_restricted.php i am missing ?> can this be a problem?

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Discount coupons for category is not working,error MySQL

    Quote Originally Posted by Rimo View Post
    By the way I am using the dutch versions so you will find here two files of coupon_restrict.php
    If I'd known that I would have suggested that you simply change languages to see if the problem goes away.

    Not needed now though, I see where your problem is.

    The dutch version of this file is based on an older version of zencart, as such, some of the defines are missing, including the one under discussion.

    You will need to add these missing defines to your dutch file. Just copy them over from the english one and edit as needed.

    As for the missing "?>" - No, this will NOT cause you any problems. It is supposed to be that way. It should be removed from the dutch file when you update it with the missing entries.

    Cheers
    Rod

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

    Default Re: Discount coupons for category is not working,error MySQL

    Your dutch file appears to be missing a number of defines that are in the english ...
    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!

  4. #4
    Join Date
    Jan 2011
    Posts
    83
    Plugin Contributions
    0

    Default Re: Discount coupons for category is not working,error MySQL

    Thank you all
    You were right,the problem was the dutch file.
    I copied the english to the dutch file,problem solved

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

    Default Re: Discount coupons for category is not working,error MySQL

    You are most welcome ... thanks for the update that your language file was out of date ...
    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!

  6. #6
    Join Date
    Jul 2010
    Location
    Velsen-Zuid
    Posts
    33
    Plugin Contributions
    2

    Default Re: Discount coupons for category is not working,error MySQL

    Quote Originally Posted by Rimo View Post
    Thank you all
    You were right,the problem was the dutch file.
    I copied the english to the dutch file,problem solved
    GREAT!!! They are missing in the Russian language files too,... Thanks!

 

 

Similar Threads

  1. v154 discount coupons not working as expected...
    By kitcorsa in forum General Questions
    Replies: 3
    Last Post: 3 Apr 2015, 05:29 PM
  2. Mysql error Coupons
    By romanus in forum General Questions
    Replies: 0
    Last Post: 12 Apr 2011, 06:00 PM
  3. Making discount coupon coupons NOT available for items already discounted.
    By spadesoleil in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 21 Oct 2010, 03:52 AM
  4. Help Discount coupons isn't working right.
    By wmorris in forum General Questions
    Replies: 2
    Last Post: 30 Nov 2009, 01:52 AM
  5. Coupons Not working - checkout still asks for money
    By designerman in forum Managing Customers and Orders
    Replies: 5
    Last Post: 24 Aug 2007, 06:07 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