Merge branch 'hotfix-cart-packs'

This commit is contained in:
David 2018-01-12 11:36:16 +01:00
commit 7da68f2768

View File

@ -606,6 +606,9 @@ class Cart extends CartCore {
$cart_add_qties[$p_key] += $quantity * $pack_item['quantity']; $cart_add_qties[$p_key] += $quantity * $pack_item['quantity'];
$cart_add_ids[] = $pack_item['id_product_item']; $cart_add_ids[] = $pack_item['id_product_item'];
} }
if (!isset($cart_add_qties[$id_product . '_0'])){
$cart_add_qties[$id_product . '_0'] = 0;
}
$cart_add_qties[$id_product . '_0'] += $quantity; $cart_add_qties[$id_product . '_0'] += $quantity;
$cart_add_ids[] = (int) $id_product; $cart_add_ids[] = (int) $id_product;
} }
@ -694,6 +697,9 @@ class Cart extends CartCore {
$cart_add_qties[$p_key] += $quantity * $pack_item['quantity']; $cart_add_qties[$p_key] += $quantity * $pack_item['quantity'];
$cart_add_ids[] = $pack_item['id_product_item']; $cart_add_ids[] = $pack_item['id_product_item'];
} }
if (!isset($cart_add_qties[$id_product . '_0'])){
$cart_add_qties[$id_product . '_0'] = 0;
}
$cart_add_qties[$id_product . '_0'] += $quantity; $cart_add_qties[$id_product . '_0'] += $quantity;
$cart_add_ids[] = (int) $id_product; $cart_add_ids[] = (int) $id_product;
} }