This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Cart Twig functions¶
You can use cart Twig functions to check whether products can be added to cart, or to format the price value.
ibexa_can_be_added_to_cart()
¶
The ibexa_can_be_added_to_cart()
function checks whether the provided product can be added to cart.
It eliminates products that aren't available, products that don't have a price that corresponds to a currency selected for the cart, and products, for which VAT category isn't set.
It also eliminates products that have variants but aren't one of those variants.
1 |
|