Purchasable
- Type
- Class
- Namespace
- craft\commerce\helpers
- Inherits
- craft\commerce\helpers\Purchasable
- Since
- 3.2.8
Purchasable helper
View source (opens new window)
# Public Methods
| Method | Description |
|---|---|
| isTempSku() | Returns whether the given SKU is temporary. |
| tempSku() | Generates a new temporary SKU. |
# isTempSku()
- Since
- 3.2.8
Returns whether the given SKU is temporary.
View source (opens new window)
Arguments
$sku(string (opens new window))
Returns
# tempSku()
- Since
- 3.2.8
Generates a new temporary SKU.
View source (opens new window)
Returns
# Constants
| Constant | Description |
|---|---|
TEMPORARY_SKU_PREFIX |