// Refactoring of shop class with new context
This commit is contained in:
1 parent
e7ea230525
commit
2d77925e7d
28 files changed
+216
-185
No files matched your search
+1
-1
@@ -535,7 +535,7 @@ class CartCore extends ObjectModel
|
||||
*/
|
||||
public function updateQty($quantity, $id_product, $id_product_attribute = NULL, $id_customization = false, $operator = 'up', $id_shop = NULL, $id_group_shop = NULL)
|
||||
{
|
||||
if (is_null($id_shop)) $id_shop = Shop::getCurrentShop(true);
|
||||
if (is_null($id_shop)) $id_shop = Context::getContext()->shop->getID();
|
||||
$quantity = (int)$quantity;
|
||||
$id_product = (int)$id_product;
|
||||
$id_product_attribute = (int)$id_product_attribute;
|
||||
|
||||
Reference in new issue
Block a user