Documentation

isGift

boolean|null public
\Bitrix\Sale\Discount\Gift\Manager::isGift(
 \Bitrix\Sale\Basket $basket,
 array $product
);

Method returns true, if product is a gift to a buyer's shopping cart. Non-static method.

Parameters

ParameterDescriptionVersion
$basketShopping cart.
$productArray with product parameters.

Example



© «Bitrix24», 2001-2024
Up