VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Three_d on January 28, 2016, 11:51:54 AM

Title: VM 2.6.22 - Coupon Expiry Date bug still exists
Post by: Three_d on January 28, 2016, 11:51:54 AM
Hi,

For a long time there is a bug in the file
components\com_virtuemart\helpers\coupon.php
on line 51:
. ',  IFNULL(0, IF( NOW() > `coupon_expiry_date`, 1, 0 ) ) AS ended'
should be:
. ',  IFNULL(0, IF( NOW() > `coupon_expiry_date`, 1, 0 ) ) AS ended '
because otherwise the expiry date doesn't work and in the backend of Virtuemart 2.6.22 the coupon disappears when you try to edit the coupon.

Jeroen
Title: Re: VM 2.6.22 - Coupon Expiry Date bug still exists
Post by: chaosicq on January 28, 2016, 15:09:03 PM
I have version 3.012, the coupons i have made still work but no longer appear in order to edit them, when i make a new coupon that does not appear to work but is still editable at the moment, not sure when the original 2 coupons i made vanished, but as i made them only a couple days ago they could be disappearing when i clear the cach file.
Title: Re: VM 2.6.22 - Coupon Expiry Date bug still exists
Post by: Three_d on January 28, 2016, 15:41:18 PM
I'haven't checked if the coupon disappears if you use the coupon in the basket.
Maybe thats happening through the bug.
Title: Re: VM 2.6.22 - Coupon Expiry Date bug still exists
Post by: chaosicq on January 28, 2016, 16:41:26 PM
you could be right as i am using paypal in sandbox mode at present.