Jump to content

Loyalty points voucher does not go into effect immidiedly.


Nick_K

Recommended Posts

I am using prestashop 1.5.6.2 and i recently installed the loyalty point module (ver 1.13) and i have an issue. When a costumer converts his points into a voucher the voucher does not go in effect immediately, and looking at back office i see that it goes in effect at midnight of that day!

 

I searched around and found someone who had a similar problem and in the loyalty-program.php he changed the code from 

$cartRule->date_from = date('Y-m-d H:i:s', $dateFrom);

to

$cartRule->date_from = date('Y-m-d H:i:s', $dateFrom - 86400);

and apparently for him it worked, but for me it doesn't. Is there any solution to that? How can i make the voucher to go into effect immediately?

 

Thanks in advance.

Edited by Nick_K (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...