Merge branch 'hotfix-cart-packs' into develop

This commit is contained in:
David 2018-01-12 11:35:33 +01:00
commit ab8da26f51

View File

@ -606,6 +606,9 @@ class Cart extends CartCore {
$cart_add_qties[$p_key] += $quantity * $pack_item['quantity'];
$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_ids[] = (int) $id_product;
}
@ -694,6 +697,9 @@ class Cart extends CartCore {
$cart_add_qties[$p_key] += $quantity * $pack_item['quantity'];
$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_ids[] = (int) $id_product;
}