// Changed 1 year from int to strtotime '+1 year' value (cleaner)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14128 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -88,7 +88,7 @@ class LoyaltyDefaultModuleFrontController extends ModuleFrontController
|
||||
$dateFrom += 60 * 60 * 24 * (int)Configuration::get('PS_ORDER_RETURN_NB_DAYS');
|
||||
|
||||
$cartRule->date_from = date('Y-m-d H:i:s', $dateFrom);
|
||||
$cartRule->date_to = date('Y-m-d H:i:s', $dateFrom + 31536000); // + 1 year
|
||||
$cartRule->date_to = date('Y-m-d H:i:s', strtotime($cartRule->date_from.' +1 year'));
|
||||
|
||||
$cartRule->minimum_amount = (float)Configuration::get('PS_LOYALTY_MINIMAL');
|
||||
$cartRule->active = 1;
|
||||
|
||||
Reference in New Issue
Block a user