Simon-AV Posted April 21, 2011 Share Posted April 21, 2011 I seem to have found a problem with the voucher code system on v1.4.0.17I have a number of voucher codes circulating and they are all set up as I have always done with multiple available and 'Quantity per each user' set quite high to allow returning customers to use the code again for their next shop visit and transaction.It seems there is a new bug which now allows the same voucher to be used in the same transaction multiple times up until the QPEU limit is reached. The result of this is the ability to purchase items at an obviously massively reduced price.This has happened to us for the first time today and has resulted in us loosing money on a transaction if we choose to honour the price.Has anyone else experienced this? I will post this up on bug tracker as well and see what comes of it.For the time being I've had to reduce the QPEU to 1 but I guess this means that a returning customer will not be able to use the discount code again which is not how it should work. Link to comment Share on other sites More sharing options...
Simon-AV Posted May 13, 2011 Author Share Posted May 13, 2011 Anything guys and girls? This is still an issue. Link to comment Share on other sites More sharing options...
vespartine Posted November 9, 2011 Share Posted November 9, 2011 in prestashop 1.3 fixed by : in file order.php in the web root folder find line in the /* Manage discounts */ section : ------------------------------------------------------------- $cart->addDiscount(intval($discount->id)); ------------------------------------------------------------ replace with --------------------------------------------------------------- $cart->deleteDiscount(intval($discount->id)); $cart->addDiscount(intval($discount->id)); ---------------------------------------------------------------- Essentially you are making sure previous entries of the same voucher are deleted before adding the new one. S Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now