// Add CartController

This commit is contained in:
rGaillard
2011-10-27 14:04:58 +00:00
parent 901d7a89a1
commit b19ddb50ab
4 changed files with 427 additions and 347 deletions
+1 -1
View File
@@ -1390,7 +1390,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->isAssociatedToShop($shop))
if (!$discountObj->isAssociatedToShop((int)$shop->id))
return Tools::displayError('This voucher is not available with this shop.');
if (sizeof($discounts) >= 1 AND $checkCartDiscount)
{