Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2008
    Posts
    1
    Plugin Contributions
    0

    bug coupon has expired on the day before expire date.

    zen cart: Zen Cart 1.3.8a
    PHP Version: 5.2.5 (Zend: 2.2.0)
    Database: MySQL 5.0.51

    I've solved this problem like this.

    includes/modules/order_total/ot_coupon.php - line 251

    $date_query=$db->Execute("select coupon_expire_date from " . TABLE_COUPONS . "
    where coupon_expire_date >= '".date("Y-m-d G:i:s", strtotime("-1 day -1 hour"))."' and
    coupon_code='" . zen_db_prepare_input($dc_check) . "'");

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

    Default Re: coupon has expired on the day before expire date.

    What date did you have it set to expire?

    What date did it expire?

    Example: I make a coupon with the Start Date: 01-01-2008 and expire it on 01-15-2008 ...

    Do you want it to expire (can no longer be used) on: 01-15-2008 or 01-16-2008?
    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 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: coupon has expired on the day before expire date.

    If you want the last day that it can be used to be the 15th then you need to set it to expire the 16th, since it will expire at midnight server time

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

    Default Re: coupon has expired on the day before expire date.

    Well the better way is to manage the time too ...

    We will be working on this in an upcoming release ...

    Some want coupons to start at: 0:00:00 and end at 23:59:59 and others will want more specifics ...

    That also lends towards server time vs store time etc. etc. etc.

    Should be fun to work up all the ins and outs of this and a zillion other scenarios we have been chewing over ...
    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!

 

 

Similar Threads

  1. Replies: 3
    Last Post: 25 Sep 2013, 10:11 PM
  2. Replies: 12
    Last Post: 15 Jul 2013, 03:39 AM
  3. Banner expire after 1 day
    By bladecris in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Oct 2011, 03:01 PM
  4. Expire product based on date?
    By andrea71 in forum Customization from the Admin
    Replies: 1
    Last Post: 23 May 2006, 04:07 AM

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