Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Coupon dates have expired and can no longer use on V151. Not ready to upgrade yet.

    Hello,

    Using v 1.5.1

    The Coupon dates have expired and only go up to Dec 2018 and can no longer use coupons.

    The check out page still works and the exp dates increase.

    Any ideas as to how to extend the exp dates for coupons.

    Thanks much.
    Thank you, Sincerely, MagicMan

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Coupon dates have expired and can no longer use on V151. Not ready to upgrade yet

    See this posting (https://www.zen-cart.com/showthread.php?219015-zen_draw_date_selector-quot-times-out-quot-in-2018) for help with your oldy-moldy version of Zen Cart.

  3. #3
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Coupon dates have expired and can no longer use on V151. Not ready to upgrade yet

    I looked at these links and it makes absolutely no sense to me. I tried switching a few things and still could not get it to work.

    Is there any way that you could be a bit more specific? Thank you.
    Thank you, Sincerely, MagicMan

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

    Default Re: Coupon dates have expired and can no longer use on V151. Not ready to upgrade yet

    /admin/includes/functions/general.php -- in your old v1.5.1, the line is 1911
    Change it like shown here: (removing the red, adding the green):
    https://github.com/zencart/zencart/c...1aafaf92ac8fc3
    .

    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.

  5. #5
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Coupon dates have expired and can no longer use on V151. Not ready to upgrade yet

    Roger that! Thank you for the clarification. It works fine now. Much obliged.
    Thank you, Sincerely, MagicMan

  6. #6
    Join Date
    Mar 2009
    Posts
    169
    Plugin Contributions
    2

    Default Re: Coupon dates have expired and can no longer use on V151. Not ready to upgrade yet

    Quote Originally Posted by MagicMan View Post
    Hello,

    Using v 1.5.1

    The Coupon dates have expired and only go up to Dec 2018 and can no longer use coupons.

    The check out page still works and the exp dates increase.

    Any ideas as to how to extend the exp dates for coupons.

    Thanks much.

    If anyone else comes across this issue do the following:

    Open
    admin/includes/functions/general.php

    around line 1982 you'll see the following:

    PHP Code:
    for ($i=2001;$i<2019;$i++){ 
    replace it with this:

    PHP Code:
        $curryear date("Y");
        
    $yearp10 $curryear 11;
        
        
    // for ($i=2001;$i<2019;$i++){
         
    for ($i=$curryear;$i<$yearp10;$i++){ 

 

 

Similar Threads

  1. Replies: 3
    Last Post: 17 Jan 2012, 09:47 PM
  2. 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
  3. after upgrade, no images and can't use admin
    By sobebabies in forum Upgrading from 1.3.x to 1.3.9
    Replies: 7
    Last Post: 26 Aug 2007, 07:34 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