SKU
Class for handling SKUs.
Class constants
Constant | Description |
---|---|
\Bitrix\Catalog\Product\Sku::OFFERS_ERROR | Incorrect product or iblock data. |
\Bitrix\Catalog\Product\Sku::OFFERS_NOT_EXIST | SKU doesn't exist. |
\Bitrix\Catalog\Product\Sku::OFFERS_NOT_AVAILABLE | SKU do exist, but none are available for purchase. |
\Bitrix\Catalog\Product\Sku::OFFERS_AVAILABLE | SKU available for purchase. |
Class methods
Method | Description | Available from version |
---|---|---|
allowedUpdateAvailable | Returns true, when automatic update for product purchase availability is allowed. | |
disableUpdateAvailable | Disables automatic update for product purchase availability. | |
enableUpdateAvailable | Enables automatic update for product purchase availability. | |
getDefaultParentSettings | Returns default settings for products with SKUs depending on the flag $state . |
|
getOfferState | Returns flag for general status of product SKUs with $productId for the method Sku::getDefaultParentSettings. |
|
handlerAfterIblockElementAdd | Handler for the event OnAfterIBlockElementAdd . Не используется напрямую. |
|
handlerAfterIblockElementDelete | Handler for the event OnAfterIBlockElementDelete . Not used directly. |
|
handlerAfterIBlockElementSetPropertyValues | Handler for the event OnAfterIBlockElementSetPropertyValues . Not used directly. |
|
handlerAfterIblockElementUpdate | Handler for the event OnAfterIBlockElementUpdate . Not used directly. |
|
handlerIblockElementAdd | Handler for the event OnIBlockElementAdd . Not used directly.. |
|
handlerIblockElementDelete | Handler for the event OnIBlockElementDelete . Not used directly. |
|
handlerIblockElementSetPropertyValues | Handler for the event OnIBlockElementSetPropertyValues . Not used directly. |
|
handlerIblockElementUpdate | Handler for the event OnIBlockElementUpdate . Not used directly. |
|
updateAvailable | Updates flag for product purchase availability. | (deprecated from version 17.6.0) |
calculateComplete | Called when product availability, type and sorting by prices for products with SKUs must be updated. Receives as an argument a primary product ID or SKU ID. | |
calculatePrice | Only updates sorting by SKU prices (under condition that product availability and product type are already correct). | |
calculate | Calculation procedure. When deferred calculation mode is enabled, it must be called independently. The necessary data must be processed in Sku::calculateComplete or Sku::calculatePrice. | |
enableDeferredCalculation | Enables deferred calculation for product and price availability. | |
disableDeferredCalculation | Disables deferred calculation for product price and availability. | |
usedDeferredCalculation | Returns true, when deferred calculation for product price and availability. |
© «Bitrix24», 2001-2024