News:

Support the VirtueMart project and become a member

Main Menu

VM 2.6.22 - Coupon Expiry Date bug still exists

Started by Three_d, January 28, 2016, 11:51:54 AM

Previous topic - Next topic

Three_d

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

chaosicq

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.

Three_d

I'haven't checked if the coupon disappears if you use the coupon in the basket.
Maybe thats happening through the bug.

chaosicq

you could be right as i am using paypal in sandbox mode at present.