Dan.Jan Posted February 11 Share Posted February 11 (edited) Hi, I have generated a voucher for a specific group of customers. To display it to them when they log into their account, I selected the "Highlight" option for the voucher (I don't know what exactly this is called - that's why I'm attaching a picture). The voucher is displayed both in the account and in the cart when you make an order. That's OK. If the voucher is redeemed, it is no longer available in the account, but still displays in the cart? Can you help me what to do? Prestashop 8.1.1 Thanks. Edited February 11 by Dan.Jan (see edit history) Link to comment Share on other sites More sharing options...
Dan.Jan Posted February 20 Author Share Posted February 20 The problem is that the voucher list for the cart contains also vouchers that have already been used by the user, they have quantity_for_user = 0. So there is probably a bug in some controller that fills this list for the cart??? Link to comment Share on other sites More sharing options...
Dan.Jan Posted February 21 Author Share Posted February 21 (edited) On 2/14/2024 at 7:54 PM, SeifF said: Hello, thank you for reaching out to us. You need to set the condition for the discount to be used only one time on the backoffice. If the problem persists, you must therefore create a ticket on Github from this link:- https://github.com/PrestaShop/PrestaShop/issues It will be necessary to detail the problem using useful information : - Prestashop version, - PHP version - Screenshots I wish you a good day - Steps to reproduce the problem The solution, that works for me is to add the following code to: \src\Adapter\Presenter\Cart\CartPresenter.php Can someone from the Prestashop Developer team have a look at this and tell me if this is the right solution? Is it possible to override this file? Thank you. Edited February 21 by Dan.Jan (see edit history) 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