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.
Rendering is performed using a configurable list of Twig templates with named blocks.
You can customize this behavior by adding templates or by listening to the ProductAttributeRenderEvent.
For more information, see Customize product attribute templates.
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 | |
ibexa_product_catalog_group_attributes¶
The ibexa_product_catalog_group_attributes filter groups product attributes based on the attribute group they belong to.
Example¶
1 2 3 4 5 6 7 8 | |