S
S
sagaton2021-11-10 21:52:00
1C-Bitrix
sagaton, 2021-11-10 21:52:00

How to set a discount for 3 sections with products?

There are many sections with product groups.
You need to set the same discount for 3 sections.
If you write like this
$IBLOCK_SECTION_ID= 13
then everything is fine, but when I try to specify several sections, for example, like this
$IBLOCK_SECTION_ID= [13,14,15];
That discount is placed on the goods themselves with this id.
Please tell me how can I specify several sections at once?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Zhitnik, 2021-11-11
@art-zhitnik

In your condition it is indicated that you are checking the elements of the infoblock. Apparently you need to do this:

[
    "CLASS_ID" => "CondIBSection",
    "DATA" => [
        "logic" => "Equal",
        "value" => $IBLOCK_SECTION,
    ]
]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question