M
M
Maxim Grechushnikov2015-05-15 14:08:14
PHP
Maxim Grechushnikov, 2015-05-15 14:08:14

Bitrix: Why is the list of viewed products not displayed?

<? // последние просмотренные элементы
  $APPLICATION->IncludeComponent("bitrix:sale.viewed.product", "", array(
     "VIEWED_COUNT" => "10", // количество товаров в истории, по умолчанию 5
     "VIEWED_NAME" => "Y", // показывать ли имя, по умолчанию Y
     "VIEWED_IMAGE" => "Y", // показывать ли картинку, по умолчанию Y
     "VIEWED_PRICE" => "Y", // показывать ли цену, по умолчанию Y
     "VIEWED_CANBUY" => "Y", // показывать ли кнопку купить, по умолчанию N
     "VIEWED_CANBUSKET" => "Y", // показывать ли кнопку положить в карзину, по умолчанию N
     "VIEWED_IMG_HEIGHT" => 150, // высота изображения для ресайзера, по умолчанию 150
     "VIEWED_IMG_WIDTH" => 150, // ширина изображения для ресайзера, по умолчанию 150
     "BASKET_URL" => "/personal/cart",
     "ACTION_VARIABLE" => "action",
     "PRODUCT_ID_VARIABLE" => "id"
     )
  );
?>

outputs nothing. what am i doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-05-15
@maxyc_webber

Important! This component has been deprecated and is not used since version 14.5.0.
link
You need to use the catalog.viewed.products component link
AND the answer to your question on the forum

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question