getProductsDetail(); } $customized_datas = Product::getAllCustomizedDatas($this->id_cart); $result_array = array(); foreach ($products as $row) { if ($selected_qty) { $row['product_quantity'] = 0; foreach ($selected_products as $key => $id_product) { if ($row['id_order_detail'] == $id_product) { $row['product_quantity'] = (int)$selected_qty[$key]; } } if (!$row['product_quantity']) { continue; } } $this->setProductImageInformations($row); $this->setProductCurrentStock($row); $this->setProductPrices($row); $this->setProductCustomizedDatas($row, $customized_datas); if ($row['download_hash'] && !empty($row['download_hash'])) { $row['filename'] = ProductDownload::getFilenameFromIdProduct((int)$row['product_id']); $row['display_filename'] = ProductDownload::getFilenameFromFilename($row['filename']); } $row['id_address_delivery'] = $this->id_address_delivery; if (isset($row['id_configurator']) && $row['id_configurator'] > 0) { $row['configurator_opt'] = ConfiguratorStorage::getOptProductFlatten($row['id_configurator']); } $result_array[(int)$row['id_order_detail']] = $row; } if ($customized_datas) { Product::addCustomizationPrice($result_array, $customized_datas); } return $result_array; } }