Jump to content

Problem when the sale ends


antos

Recommended Posts

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 by antos (see edit history)
Link to comment
Share on other sites

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

  • 10 months later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...