U
U
unsweet2020-07-21 11:49:54
1C-Bitrix
unsweet, 2020-07-21 11:49:54

Find out which coupon can be applied to a product?

Discounts and coupons for them are included in the rules for working with the basket.
Is it possible to get information on the detailed page of the product whether it is possible to apply any coupon to this product and which one specifically.
Of course, you can get all coupons via
\Bitrix\Sale\DiscountCouponsManager::get(true, [], false, false)
and all discounts via CCatalogDiscount::GetList
but they are not related to each other in any way

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