You are here:  » Voucher expiry dates and dates added

Support Forum



Voucher expiry dates and dates added

Submitted by JasonG on Fri, 2011-11-18 15:01 in

Hi david

As you know we modified the voucher facility to have click to reveal and display these on their own page, we also have added in fields to display type of code, deal or sale as well as exclsive codes

For some reason the date added and expiry date displaying is not correct, the expiry date it always seems to be the date we are looking at them, i.e today it is the 18th, tomorrow it would be the 19th, I ahve not established a pattern with date added yet

{link saved}

If we look at the "Get pet suppplies" exclusive as an example the dates in the admin area are

Added 2011-10-24 and Expires 2011-12-24 which is diffeent to what we see on the actual website

any ideas?

Thanks
Stuart

Submitted by support on Fri, 2011-11-18 15:48

Hi Stuart,

It looks like the date() command for display of the expiry date isn't using $voucher["valid_to"] in the second parameter; which if empty defaults to the time now. Most likely in html/coupons.php look for:

date("Y-m-d")

...and if you can see that, REPLACE with:

date("Y-m-d",$voucher["valid_to"])

If you're not sure, forward your vouchers.php and html/coupons.php and I'll check it out...

Cheers,
David.
--
PriceTapestry.com