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

    Default Coupon expiration date -

    Does it expire at midnight on the day after I set it?

    For a labor day sale, if I expire it on Sept 1st, can people use it on that day? Or will it be expired? Do I set the expiration date for Sept 2nd?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Coupon expiration date

    If I set a coupon for:

    Start Date :: 08/29/2008
    End Date :: 08/30/2008

    At midnight, August 30, 2008 ... as in it was August 29th and I could use the coupon ... then I hit the midnight hour of August 30th ... the coupon would work on the 29th up to midnight and then stop working ...

    NOTE: If I am in the checkout and put in the Discount Coupon at:
    08/29/2008 11:59pm and am on the checkout_payment page when I do this and go to the checkout_confirmation ... even if I do NOT hit confirm until 08/30/2008 12:01am ... I am valid ...

    However, if I leave the checkout after putting in the Discount Coupon at 11:59pm ... and come back to it at 12:01am ... the Discount Coupon is NOT valid ... as I exceeded the time and did not hit confirm checkout ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Coupon expiration date

    NOTE: This is based on server time ... so be careful what you wish for ...

    It is always a good idea to test these Discount Coupons specifically for what you want based on dates before you need it ...

    Example, I want a coupon for 08/31/2008 for 1 day ...

    I would test this a few days early, like the 27th and make sure it works properly ...

    When that expires, you can COPY to a new coupon and change the dates to the 31st and the new Discount Coupon Code ...

    NOTE: the practice Discount Coupon would expire, but the COPY could be updated to the new 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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #4
    Join Date
    Dec 2008
    Posts
    80
    Plugin Contributions
    0

    Default Re: Coupon expiration date

    I have a page that shows the available specials. It is pulling the database expiration date so the customer sees that a coupon expires on the expiration date I have entered into the database.

    One option I could modify the date I get from the query before displaying it to the customer. Or I could change the query where I determine if the coupon is expired or not.

    My customers thought that the expiration date being set should mean the coupon can be used up to the end of the date specified and in order to not have to explain it each time I have modified the query that checks the expiration to be
    Code:
    $date_query=$db->Execute("
    select coupon_expire_date from " . TABLE_COUPONS . " 
    where coupon_expire_date >= 
    (SELECT DATE_SUB( now( ) , INTERVAL 1 DAY)) 
    and coupon_code='" . zen_db_prepare_input($dc_check) . "'");
    instead of the original

    Code:
    $date_query=$db->Execute("
    select coupon_expire_date from " . TABLE_COUPONS . " 
    where coupon_expire_date >= now( ) 
    and coupon_code='" . zen_db_prepare_input($dc_check) . "'");
    Does anyone see anything wrong with this modification? Or possibly an easier way to achieve the same results?

    I have run some tests and it should allow the store owner to enter 2-28 as the expiration and the customer be allowed to use the coupon all day on the 28th so matching some peoples understanding of use ON or BEFORE x date. This may only be important for me based on me not using the sideboxes and displaying the specials differently than most shops but I wanted to throw it out there for discussion.

    Thanks

 

 

Similar Threads

  1. Add product expiration date
    By mige in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 2 Dec 2008, 02:52 AM
  2. Expiration Date not Emailed with Numbers
    By Alkafy in forum General Questions
    Replies: 5
    Last Post: 14 Aug 2008, 06:06 AM
  3. Expiration date is not available in special etc.
    By weusthofm in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 8 Apr 2007, 07:27 PM
  4. Adding expiration date to coupon emails?
    By KTNaturals in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
    Replies: 1
    Last Post: 8 Feb 2007, 02:40 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
  •