Set index on $cart_add_qties
This commit is contained in:
parent
b2130305b2
commit
8dfb53c792
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user