// Add CartController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9676 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2011-10-27 14:04:58 +00:00
parent 7692c1a16f
commit f61f2f0570
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)
{