sku_default_attribute_value
Retrieves a default attribute value for a SKU.
Example
1
{{ '123' | sku_default_attribute_value: 'attribute', 'fallback' }} => value
Input
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 |