R
R
run1822018-04-30 19:05:46
1C-Bitrix
run182, 2018-04-30 19:05:46

How to apply a discount coupon to an order in Bitrix in Bitrix?

I created an order and applied a discount coupon.
I create an order using the method CSaleOrder::Add($arFields);
After I make a binding

CSaleBasket::OrderBasket($ORDER_ID, $basket_user_id, SITE_ID); CSaleBasket::DeleteAll($basket_user_id, False);

And after binding, the discount is not applied to the order. What can be wrong?
I am attaching screenshots from the admin panel.
vtcwzykijkoarx9e8zu9fs67x8q.jpeg
qxokactnz3jrlo3oq06iko9pmeu.jpeg
The screenshots show that the discount was first applied and then removed, as I checked because of the CSaleBasket::OrderBasket($ORDER_ID, $basket_user_id, SITE_ID);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question