Purchasable ​
- Type
- Class
- Namespace
- craft\commerce\helpers
- Inherits
- craft\commerce\helpers\Purchasable
- Since
- 3.2.8
Purchasable helper
Public Methods ​
Method | Description |
---|---|
availableForPurchaseInputHtml() | |
catalogPricingRulesTableByPurchasableId() | |
isTempSku() | Returns whether the given SKU is temporary. |
skuInputHtml() | |
tempSku() | Generates a new temporary SKU. |
availableForPurchaseInputHtml()
​
- Since
- 5.0.0
Arguments ​
Returns ​
catalogPricingRulesTableByPurchasableId()
​
Arguments ​
Returns ​
Throws ​
isTempSku()
​
- Since
- 3.2.8
Returns whether the given SKU is temporary.
Arguments ​
$sku
skuInputHtml()
​
- Since
- 5.0.0
Arguments ​
Returns ​
tempSku()
​
- Since
- 3.2.8
Generates a new temporary SKU.
Constants ​
Constant | Description |
---|---|
TEMPORARY_SKU_PREFIX |