// Fix adding pack to cart O_o

This commit is contained in:
jBreux
2011-12-22 22:03:13 +00:00
parent b9a96732c2
commit 8515536c5d
+5
View File
@@ -786,6 +786,11 @@ class CartCore extends ObjectModel
$result2 = Db::getInstance()->getRow($sql);
$product_qty = (int)$result2['quantity'];
// Quantity for product pack
if (Pack::isPack($id_product))
{
$product_qty = Pack::getQuantity($id_product, $id_product_attribute);
}
$new_qty = (int)$result['quantity'] + (int)$quantity;
$qty = '+ '.(int)$quantity;