// Fix on discounts with multishop + index?controller=index fixed to be only index.php
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7929 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -1322,7 +1322,7 @@ class CartCore extends ObjectModel
|
||||
return Tools::displayError('This voucher is not yet valid');
|
||||
if (strtotime($discountObj->date_to) < time())
|
||||
return Tools::displayError('This voucher has expired.');
|
||||
if (!$discountObj->availableWithShop($shop))
|
||||
if (!$discountObj->isAssociatedToShop($shop))
|
||||
return Tools::displayError('This voucher is not available with this shop.');
|
||||
if (sizeof($discounts) >= 1 AND $checkCartDiscount)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user