Product Twig functions¶
ibexa_get_product
¶
The ibexa_get_product()
filter gets the selected product based on either a product object or a content item object that contains a product.
Examples¶
1 2 |
|
ibexa_format_product_attribute
¶
The ibexa_format_product_attribute
filter formats the attribute value to a readable, translated form.
Examples¶
1 2 3 |
|
ibexa_product
¶
ibexa_product
enables you to check whether the provided object is a product.
Examples¶
1 |
|
ibexa_has_product_availability
¶
The ibexa_has_product_availability
Twig function is used to check whether a product has defined availability.
Examples¶
1 2 3 4 5 |
|
ibexa_get_product_availability
¶
The ibexa_get_product_availability
Twig function retrieves the availability for a product.
Examples¶
1 2 3 4 5 6 7 8 |
|
ibexa_is_product_available
¶
The ibexa_is_product_available
Twig function checks whether a product is available for purchase based on its availability status.
Examples¶
1 2 3 4 5 6 7 |
|
ibexa_get_product_stock
¶
The ibexa_get_product_stock
Twig function retrieves the stock quantity for a product.
Examples¶
1 2 3 4 5 6 7 8 |
|
ibexa_format_price
¶
The ibexa_format_price
filter formats the price value by placing currency code either on the left or on the right of the numerical value.
Examples¶
1 2 3 |
|
ibexa_is_pim_local
¶
The ibexa_is_pim_local
is a helper Twig function that enables changing the behavior of templates depending on the source of product data.
Examples¶
1 2 3 4 5 |
|