Results 1 to 9 of 9
  1. #1
    Join Date
    May 2006
    Location
    Montana
    Posts
    291
    Plugin Contributions
    20

    Default [Done 156c] Coupon "not valid for products on sales" issue

    Version 1.5.6B

    If you go to https://americanchainmail.com and enter a coupon code of: Gencon2019 You will see :

    Certain other restrictions may apply. Please see below for other details.
    TEXT_NO_PROD_SALES

    This happens when you set the coupon in admin and click for it to not be valid for items that are already on sale.

    It also happens if I flip to the classic template as well

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: 156B Coupon "not valid for products on sales" issue

    Looks like missing the definition in:
    includes/languages/english/discount_coupon.php as the constant is defined in includes/languages/english/popup_coupon_help.php
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    May 2006
    Location
    Montana
    Posts
    291
    Plugin Contributions
    20

    Default Re: 156B Coupon "not valid for products on sales" issue

    define('TEXT_NO_PROD_SALES', '<p>This coupon is not valid for products on sale.</p>');

    That is included in the file already

    Quote Originally Posted by mc12345678 View Post
    Looks like missing the definition in:
    includes/languages/english/discount_coupon.php as the constant is defined in includes/languages/english/popup_coupon_help.php

  4. #4
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: 156B Coupon "not valid for products on sales" issue

    Quote Originally Posted by stellarweb View Post
    define('TEXT_NO_PROD_SALES', '<p>This coupon is not valid for products on sale.</p>');

    That is included in the file already
    Which file(s)?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    May 2006
    Location
    Montana
    Posts
    291
    Plugin Contributions
    20

    Default Re: 156B Coupon "not valid for products on sales" issue

    I just looked in includes/languages/english/popup_coupon_help.php

    Quote Originally Posted by mc12345678 View Post
    Which file(s)?

  6. #6
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: 156B Coupon "not valid for products on sales" issue

    Quote Originally Posted by stellarweb View Post
    I just looked in includes/languages/english/popup_coupon_help.php
    Good, so looks like we are in agreement that the definition exists in the popup_coupon_help file. The problem is that the same constant is used in the discount_coupon page but there is no definition in the discount_coupon language file and therefore you will see the constant as a raw piece of text. To alleviate that problem a definition is needed in includes/languages/english/discount_coupon.php.

    I don't know if the words used in the popup help work with the discount_coupon page or if they should be modified slightly, but the fact is the constant is not defined where it is used.

    Quote Originally Posted by mc12345678 View Post
    Looks like missing the definition in:
    includes/languages/english/discount_coupon.php as the constant is defined in includes/languages/english/popup_coupon_help.php
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    May 2006
    Location
    Montana
    Posts
    291
    Plugin Contributions
    20

    Default Re: 156B Coupon "not valid for products on sales" issue

    Do you have any solutions?

  8. #8
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: 156B Coupon "not valid for products on sales" issue

    Quote Originally Posted by stellarweb View Post
    Do you have any solutions?
    Quote Originally Posted by mc12345678
    To alleviate that problem a definition is needed in includes/languages/english/discount_coupon.php.
    this is the solution
    PHP Code:
    define('TEXT_NO_PROD_SALES''<p>This coupon is not valid for products on sale.</p>'); 
    in includes/languages/english/discount_coupon.php

    Zen Cart and it's community are the best!!

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 156B Coupon "not valid for products on sales" issue

    This will be included in the v156c update.
    .

    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.

 

 

Similar Threads

  1. v139h Coupon is not valid for items in cart
    By isaiah36 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 8
    Last Post: 17 Jan 2013, 03:06 AM
  2. Discount/coupon valid for only one day
    By allyn4dogs in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 17 Sep 2011, 08:12 PM
  3. Coupon valid for a specific day of the week
    By DamienDLSkinSolution in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 26 Nov 2010, 11:22 PM
  4. Coupon always valid for all categories
    By 2ndMouse in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 16 Nov 2010, 12:02 AM
  5. Can you make a coupon NOT valid for a specific country?
    By karma-lab in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 9 Jun 2008, 04:31 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