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

# tempSku()

Since
3.2.8

Generates a new temporary SKU.

View source (opens new window)

# Constants

Constant Description
TEMPORARY_SKU_PREFIX