antos Posted April 28, 2023 Share Posted April 28, 2023 (edited) Hi, I have a problem with sales or other promotions. When the sale period ends, customers who select products but did not order during the period when the sale was active, can still order with the discount. Same thing when I offer a gift during a specific period. If the customer selects products during the period when they can have the gift, even if they validate the cart afterwards, they still have the gift. My question is quite simple: how can I remove the sale or the gift without deleting the abandoned or unordered cart once the sale is ended? Edited April 28, 2023 by antos (see edit history) Link to comment Share on other sites More sharing options...
Eutanasio Posted April 29, 2023 Share Posted April 29, 2023 Can you please share how you configure the promotions? Link to comment Share on other sites More sharing options...
antos Posted May 1, 2023 Author Share Posted May 1, 2023 Hi Eutanasio, In attachement the way i configure promotions for presents Link to comment Share on other sites More sharing options...
Knowband Plugins Posted May 1, 2023 Share Posted May 1, 2023 The issue with coupon validation in Prestashop is not related to configuration but to the core functionality of the platform. Specifically, when ordering products, Prestashop fails to check the validity date of the coupon, resulting in incorrect discounts or errors during checkout. To fix this issue, modifications are required in the core OrderController.php controller or the class/cartrule.php file. By updating the code to properly validate coupon dates, you can ensure that customers receive the correct discounts and that the checkout process runs smoothly. Link to comment Share on other sites More sharing options...
clibert Posted March 20, 2024 Share Posted March 20, 2024 On 5/1/2023 at 3:50 PM, Knowband Plugins said: The issue with coupon validation in Prestashop is not related to configuration but to the core functionality of the platform. Specifically, when ordering products, Prestashop fails to check the validity date of the coupon, resulting in incorrect discounts or errors during checkout. To fix this issue, modifications are required in the core OrderController.php controller or the class/cartrule.php file. By updating the code to properly validate coupon dates, you can ensure that customers receive the correct discounts and that the checkout process runs smoothly. can you be more specific? How to do this? 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