На некоторых сайтах, которые работают на Битриксе, в корзине отображается не только название товара, но и анонсовое фото каждого товара, лежащего в корзине.
В шаблоне компонента "Корзина" вписал код:
<? echo '<pre>'.print_r($arResult).'</pre>'; ?>
он выводит код:
Array ( [ITEMS] => Array ( [AnDelCanBuy] => Array ( [0] => Array ( [ID] => 1 [FUSER_ID] => 1 [ORDER_ID] => [PRODUCT_ID] => 264 [PRODUCT_PRICE_ID] => 680 [PRICE] => 3276.00 [CURRENCY] => RUB [DATE_INSERT] => 2008-10-28 17:25:09 [DATE_UPDATE] => 2008-10-28 18:06:10 [WEIGHT] => 0.00 [QUANTITY] => 1 [LID] => s1 [DELAY] => N [NAME] => Чайник MOULINEX L 1,3 [CAN_BUY] => Y [MODULE] => catalog [CALLBACK_FUNC] => CatalogBasketCallback [NOTES] => Закупочная [ORDER_CALLBACK_FUNC] => CatalogBasketOrderCallback [DETAIL_PAGE_URL] => /e-store/xml_catalog/index.php?SECTION_ID=22&ELEMENT_ID=264 [DISCOUNT_PRICE] => 2457 [CANCEL_CALLBACK_FUNC] => CatalogBasketCancelCallback [PAY_CALLBACK_FUNC] => CatalogPayOrderCallback [CATALOG_XML_ID] => FUTURE-1C-CATALOG [PRODUCT_XML_ID] => e8a71ff0-55bc-11d9-848a-00112f43529a [DISCOUNT_NAME] => [DISCOUNT_VALUE] => [DISCOUNT_COUPON] => [VAT_RATE] => 0.00 [PRICE_VAT_VALUE] => 0 [PRICE_FORMATED] => 3 276.00 руб ) ) [DelDelCanBuy] => Array ( ) [nAnCanBuy] => Array ( ) ) [ShowReady] => Y [ShowDelay] => N [ShowNotAvail] => N [DISCOUNT_PRICE] => 819 [DISCOUNT_PERCENT] => 25.00 [DISCOUNT_PERCENT_FORMATED] => 25% [allSum] => 2457 [allWeight] => 0 [allSum_FORMATED] => 2 457.00 руб [DISCOUNT_PRICE_FORMATED] => 819.00 руб [allVATSum] => 0 [allVATSum_FORMATED] => 0.00 руб [allSum_wVAT_FORMATED] => )
но в этом коде не могу найти, как же вывести анонсовое фото товара.
Может кто-то сталкивался с подобным вопросом?
или знает, как можно вывести фотку товара?
В шаблоне компонента "Корзина" вписал код:
<? echo '<pre>'.print_r($arResult).'</pre>'; ?>
он выводит код:
Array ( [ITEMS] => Array ( [AnDelCanBuy] => Array ( [0] => Array ( [ID] => 1 [FUSER_ID] => 1 [ORDER_ID] => [PRODUCT_ID] => 264 [PRODUCT_PRICE_ID] => 680 [PRICE] => 3276.00 [CURRENCY] => RUB [DATE_INSERT] => 2008-10-28 17:25:09 [DATE_UPDATE] => 2008-10-28 18:06:10 [WEIGHT] => 0.00 [QUANTITY] => 1 [LID] => s1 [DELAY] => N [NAME] => Чайник MOULINEX L 1,3 [CAN_BUY] => Y [MODULE] => catalog [CALLBACK_FUNC] => CatalogBasketCallback [NOTES] => Закупочная [ORDER_CALLBACK_FUNC] => CatalogBasketOrderCallback [DETAIL_PAGE_URL] => /e-store/xml_catalog/index.php?SECTION_ID=22&ELEMENT_ID=264 [DISCOUNT_PRICE] => 2457 [CANCEL_CALLBACK_FUNC] => CatalogBasketCancelCallback [PAY_CALLBACK_FUNC] => CatalogPayOrderCallback [CATALOG_XML_ID] => FUTURE-1C-CATALOG [PRODUCT_XML_ID] => e8a71ff0-55bc-11d9-848a-00112f43529a [DISCOUNT_NAME] => [DISCOUNT_VALUE] => [DISCOUNT_COUPON] => [VAT_RATE] => 0.00 [PRICE_VAT_VALUE] => 0 [PRICE_FORMATED] => 3 276.00 руб ) ) [DelDelCanBuy] => Array ( ) [nAnCanBuy] => Array ( ) ) [ShowReady] => Y [ShowDelay] => N [ShowNotAvail] => N [DISCOUNT_PRICE] => 819 [DISCOUNT_PERCENT] => 25.00 [DISCOUNT_PERCENT_FORMATED] => 25% [allSum] => 2457 [allWeight] => 0 [allSum_FORMATED] => 2 457.00 руб [DISCOUNT_PRICE_FORMATED] => 819.00 руб [allVATSum] => 0 [allVATSum_FORMATED] => 0.00 руб [allSum_wVAT_FORMATED] => )
но в этом коде не могу найти, как же вывести анонсовое фото товара.
Может кто-то сталкивался с подобным вопросом?
или знает, как можно вывести фотку товара?