Skip to content

Commit 367ffc5

Browse files
mnoconadriendupuis
andauthored
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 8e6fd91 commit 367ffc5

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
@@ -116,9 +116,9 @@ The `ibexa_format_price` filter formats the price value by placing currency code
116116
#### Examples
117117

118118
``` html+twig
119-
{% for product.price in product.attributes %}
120-
{{ product.price.getMoney()|ibexa_format_price }}
121-
{% endfor %}
119+
{{ order.getValue().getTotalGross()|ibexa_format_price }}
120+
121+
{{ ibexa_get_original_price(discount_product)|ibexa_format_price ?: '-' }}
122122
```
123123

124124
### `ibexa_is_pim_local`

0 commit comments

Comments
 (0)