Answer the question
In order to leave comments, you need to log in
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" => ""));
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question