O
O
ostapenko2018-02-22 10:48:10
1C-Bitrix
ostapenko, 2018-02-22 10:48:10

Bitrix: DiscountCouponsManager::clearApply - how to use it?

Good afternoon!
It is necessary in Bitrix to make sure that when returning to the "Cart" page, all coupons entered by the user are cleared.
Bitrix documentation has this method - https://dev.1c-bitrix.ru/api_d7/bitrix/sale/discou...
But how to use it? We need syntax.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2018-02-22
@proudmore

Seriously? You do not understand how to use a method with one parameter?
I’ll tell you if it’s like this:
you have only 3 options:
1.
2.
3.

\Bitrix\Sale\DiscountCouponsManager::clearApply(true);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question