Documentation

roundBasket

array public static
\Bitrix\Catalog\Discount\DiscountManager::roundBasket(
 array $basket,
 array $basketRoundData = array(),
 array $orderData
);

Static method rounds off prices in shopping cart and returns prices array.

Parameters

ParameterDescriptionVersion
$basketShopping cart data.
$basketRoundDataArray with rounding off rules.
$orderDataArray with sorting data..

Example



© «Bitrix24», 2001-2024
Up