P
P
PowerUSB2019-03-15 16:59:29
1C-Bitrix
PowerUSB, 2019-03-15 16:59:29

Where can I write discount rules in Bitrix?

Hello.
I need to write the discount rules in Bitrix for the amount of the order.
Something like this:

CSaleDiscount::Add(array("LID" => $siteID, "PRICE_FROM" => 800, "PRICE_TO" => 1500, "CURRENCY" => $bRus ? "RUB" : "USD", "DISCOUNT_VALUE" => 20, "DISCOUNT_TYPE" => "P", "ACTIVE" => "Y", "SORT" => 200, "ACTIVE_FROM" => "", "ACTIVE_TO" => ""));
 CSaleDiscount::Add(array("LID" => $siteID, "PRICE_FROM" => 500, "PRICE_TO" => 800, "CURRENCY" => $bRus ? "RUB" : "USD", "DISCOUNT_VALUE" => 15, "DISCOUNT_TYPE" => "P", "ACTIVE" => "Y", "SORT" => 100, "ACTIVE_FROM" => "", "ACTIVE_TO" => ""));
 CSaleDiscount::Add(array("LID" => $siteID, "PRICE_FROM" => 1500, "PRICE_TO" => 0, "CURRENCY" => $bRus ? "RUB" : "USD", "DISCOUNT_VALUE" => 25, "DISCOUNT_TYPE" => "P", "ACTIVE" => "Y", "SORT" => 300, "ACTIVE_FROM" => "", "ACTIVE_TO" => ""));

I just can not understand where and in what file it needs to be done ????

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Proger, 2019-03-15
@freekirill

Desktop > Marketing > Product Marketing > Cart Rules . > Rules for working with the basket
, you can make a discount on the amount of the order, and other conditions. Of course, if you have the Online Store module in the Bitrix edition.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question