Skip to content

Purchasable ​

Type
Class
Namespace
craft\commerce\helpers
Inherits
craft\commerce\helpers\Purchasable
Since
3.2.8

Purchasable helper

View source

Public Methods ​

MethodDescription
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

Arguments ​

  • $sku

tempSku() ​

Since
3.2.8

Generates a new temporary SKU.

View source

Constants ​

ConstantDescription
TEMPORARY_SKU_PREFIX