Documentation

Manager

Manager сlass for handling gifts for products during calculations.

Class methods

MethodDescription Available from version
existsDiscountsWithGiftReturns true, when shopping cart discounts exist, granting a gift.
getCollectionsByBasketReturns list of gift collections granted to shopping cart.
getCollectionsByProductReturns list of gift collections granted to product inside shopping cart.
getInstanceMethod returns a Singleton pattern for gift manager.
isContainGiftActionMethod returns true, when a shopping cart discount contains a gift action.
isGiftReturns true, when product is a gift to buyer's shopping cart.


© «Bitrix24», 2001-2024
Up