Skip to content

Commit b808fda

Browse files
mnoconadriendupuis
andcommitted
Fixed example for ibexa_format_price (#3178)
* Fixed example for ibexa_format_price * Apply suggestions from code review Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> --------- Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
1 parent 936941c commit b808fda

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/templating/twig_function_reference/product_twig_functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ The `ibexa_format_price` filter formats the price value by placing currency code
112112
#### Examples
113113

114114
``` html+twig
115-
{% for product.price in product.attributes %}
116-
{{ product.price.getMoney()|ibexa_format_price }}
117-
{% endfor %}
115+
{{ order.getValue().getTotalGross()|ibexa_format_price }}
116+
117+
{{ ibexa_get_original_price(discount_product)|ibexa_format_price ?: '-' }}
118118
```
119119

120120
### `ibexa_is_pim_local`

0 commit comments

Comments
 (0)