M
M
Marty McFly2018-12-27 10:39:21
1C-Bitrix
Marty McFly, 2018-12-27 10:39:21

How to withdraw new items in Bitrix?

It is not possible to display on the main block with new products.
In the infoblock like this:
5c24811d11bcf586093286.png5c2481355fbad962198588.png
Before calling the component, I write:

<?
                    global $arrFilter;
                    $arrFilter = array('NOVINKI' => true);
                ?>

Tried it like this:
<?
                    global $arrFilter;
                    $arrFilter = array('NOVINKI' => 'Да');
                ?>

Well, in the call of the component, respectively: But all the goods are displayed simply.
"FILTER_NAME" => "arrFilter",

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2018-12-27
@alex_shevch

If by value of a property of type ENUM then it is correct like this

$GLOBALS['arrFilter'] = array('PROPERTY_NOVINKI_VALUE' => 'Да');

A
Ainur Valiev, 2018-12-27
@vaajnur

PROPERTY_NOVINKI

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question