A
A
alexander_chn2017-05-15 14:11:28
1C-Bitrix
alexander_chn, 2017-05-15 14:11:28

How to display new products on the page in Bitrix?

How to display on the page products with the New property marked?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikita, 2017-05-15
@Rema1ns

define a filter for the component, create a filter, add the condition of the marked New property there.
PS What question is such an answer.

A
Andrey Goncharov, 2017-05-15
@agmegadeth

news.list or catalog.section or any component for displaying infoblock elements with $arfilter set by the New property. First, you form the $arfilter you need, then you call the component with this filter in the parameters.

A
alexander_chn, 2017-05-15
@alexander_chn

Issue resolved.
Before calling the bitrix:catalog.top component, you need to insert the following code:

<?
global $arrFilter;
$arrFilter = array('PROPERTY_NEWPRODUCT_VALUE' => 'YES');
?>

And in the component add:
<?$APPLICATION->IncludeComponent(
  "bitrix:catalog.top",
  "catalog_top",
  Array(
...
        "FILTER_NAME" => "arrFilter",
...

Product property name - New, code - NEWPRODUCT. This property is presented as a list, and it has one value - YES (not to be confused with XML_ID like me))).
Thanks to everyone who helped!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question