array public
\Bitrix\Sale\Discount\Gift\Manager::getCollectionsByBasket(
\Bitrix\Sale\Basket $basket,
array|null $discounts = null,
array|null $appliedDiscounts = null
);
Returns list of collections with gifts by basket.
For performance you may set arguments $discounts and $appliedDiscounts, which respond to basket.
Parameters
ParameterDescriptionVersion
$basketTarget basket.
$discountsList of all discounts for basket, which already succeed conditions.
$appliedDiscountsList of all discounts for basket, which already applied to basket.
Examples