// Normalize

This commit is contained in:
rMalie
2012-01-25 15:51:47 +00:00
parent ee416c51fe
commit 0896d93e2c
6 changed files with 88 additions and 87 deletions
+3 -3
View File
@@ -129,17 +129,17 @@ class OrderInvoiceCore extends ObjectModel
$customized_datas = Product::getAllCustomizedDatas($order->id_cart);
$resultArray = array();
foreach ($products AS $row)
foreach ($products as $row)
{
// Change qty if selected
if ($selectedQty)
{
$row['product_quantity'] = 0;
foreach ($selectedProducts AS $key => $id_product)
foreach ($selectedProducts as $key => $id_product)
if ($row['id_order_detail'] == $id_product)
$row['product_quantity'] = (int)($selectedQty[$key]);
if (!$row['product_quantity'])
continue ;
continue;
}
$this->setProductImageInformations($row);