loadRoundRules
void public static \Bitrix\Catalog\Product\Price::loadRoundRules( array $priceTypes );
Static method for getting rounding off rules for several price types. Service method, used for reducing number of queries on page in cases when price calculation is performed for several types (examples - product pages, shopping cart).
Parameters
Parameter | Description | Version |
---|---|---|
$priceTypes | Price type IDs. |
Example
Upload ALL rounding off rules into cache for price types with ID = 7 and 12 (if such rules exist).
\Bitrix\Catalog\Product\Price::loadRoundRules(array(7,12));
© «Bitrix24», 2001-2024