Documentation

calculatePrice

void public static
\Bitrix\Catalog\Product\Sku::calculatePrice(
 integer $id,
 null|integer $iblockId = null,
 null|integer $type = null,
 array $priceTypes
);

Method Only updates sorting by SKU prices (under condition that product availability and product type are already correct). Static method.

Параметры

ParameterDescriptionVersion
$idProduct ID (SKUs).
$iblockIdProduct iblock (when value is unknown, set as 0).
$typeProduct type (when value is unknown, set as 0).
$priceTypesProduct price IDs (not specified, when all types must be indicated).

Example



© «Bitrix24», 2001-2024
Up