// Fix on discounts with multishop + index?controller=index fixed to be only index.php

This commit is contained in:
rMalie
2011-08-08 08:29:32 +00:00
parent 826d258e70
commit 2b71b8be68
3 changed files with 5 additions and 17 deletions
+1 -1
View File
@@ -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)
{