Jump to content

Cart Rules doesn't display in customer


Algtas

Recommended Posts

Hello,
I just find a bug with the cart rules.
They doesn't display in the customer profile.

The date_from and date_to is before and beyond today, but the function haveCartRuleToday from CartRule used in getCustomerCartRule (called from the discount controller) just check if date_to and date_form is on the day !
If the date_from is before today and date_to is beyond today, they doesn't display !

I 've override haveCartRuleToday for now changing the verification by date_from before the day and date_to after the day and it's work .

But I don't know if the haveCartRuleToday isn't use in other part of prestashop for checking cart rule who really need to be today.

So I'm writing here to signal you the problem and asking you if this fix will temporary be okay pending the bug correction ?

Thanks.

Edited by Algtas (see edit history)
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...