Documentation

loadByBasket

\Bitrix\Sale\Discount public static
\Bitrix\Sale\Discount::loadByBasket(
 \Bitrix\Sale\Basket $basket
);

Method returns initialized discount object for passed shopping cart object, not associated with an order (used only for site's public section). Static method.

Parameters

ParameterDescriptionVersion
$basketShopping cart object.

Example



© «Bitrix24», 2001-2024
Up