From 98ad65413c2194a11d47119a965c1fe1d2c5efe0 Mon Sep 17 00:00:00 2001 From: "m.korolev" Date: Thu, 30 Jan 2014 12:26:37 +0400 Subject: [PATCH] Fix ICML Loading --- intaro.intarocrm/classes/general/ICMLLoader.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/intaro.intarocrm/classes/general/ICMLLoader.php b/intaro.intarocrm/classes/general/ICMLLoader.php index 6c01dea1..87cbe1c5 100644 --- a/intaro.intarocrm/classes/general/ICMLLoader.php +++ b/intaro.intarocrm/classes/general/ICMLLoader.php @@ -281,7 +281,8 @@ class ICMLLoader { // Compile products to array $products[$product['ID']] = $product; - + $products[$product['ID']]['offers'] = array(); + $detailPicture = intval($product["DETAIL_PICTURE"]); $previewPicture = intval($product["PREVIEW_PICTURE"]); @@ -399,10 +400,6 @@ class ICMLLoader { foreach ($product['offers'] as $offer) { - if ($product["ID"] == 33) - { - $a = 10; - } $offer['PRODUCT_ID'] = $product["ID"]; $offer['DETAIL_PAGE_URL'] = $product["DETAIL_PAGE_URL"];