Updated: 2026-11-10
sku_default_attribute_value
Retrieves a default attribute value for a SKU.
Example
1
| {{ '123' | sku_default_attribute_value: 'attribute', 'fallback' }} => value
|
| Type |
Parameter |
Description |
Required |
| string |
skuId |
The ID of the SKU. Comes before the | sign. |
Required |
| string |
attribute |
The attribute to retrieve the value for |
|
| string |
fallBack |
The fallback value to return if the attribute is not found |
|
Output
| Type |
Description |
| mixed |
The default attribute value or the fallback value if not found |