// Fix adding pack to cart O_o
This commit is contained in:
1 parent
b9a96732c2
commit
8515536c5d
1 file changed
+5
@@ -786,6 +786,11 @@ class CartCore extends ObjectModel
|
|||||||
|
|
||||||
$result2 = Db::getInstance()->getRow($sql);
|
$result2 = Db::getInstance()->getRow($sql);
|
||||||
$product_qty = (int)$result2['quantity'];
|
$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;
|
$new_qty = (int)$result['quantity'] + (int)$quantity;
|
||||||
$qty = '+ '.(int)$quantity;
|
$qty = '+ '.(int)$quantity;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user