Retrieves and displays product attribute value.
Uses the.product.attribute filter.
- Full name:
the_product_attribute - Defined in:
cms/core/Shared/Helpers/product.php
Parameters
| Parameter | Type | Description |
|---|---|---|
$product |
string|\App\Domain\Product\Model\Product|\App\Domain\Product\ValueObject\ProductId | Product object or id. |
$key |
string | Product attribute key. |
Return Value
string
Product attribute value.