File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/templating/twig_function_reference Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Discounts Twig Functions allow you to operate on discounts in your templates.
15
15
16
16
### ` ibexa_render_discount_rule_type `
17
17
18
- This function transforms the discount type (` fixed_amount ` or ` percentage ` ) into a human-friendly and translated label.
18
+ This filter transforms the discount type (` fixed_amount ` or ` percentage ` ) into a human-friendly and translated label.
19
19
20
20
``` html+twig
21
21
{% set rule_type = discount.getRule().getType() %}
@@ -32,7 +32,7 @@ This function transforms the discount type (`fixed_amount` or `percentage`) into
32
32
33
33
### ` ibexa_discounts_render_discount_badge() `
34
34
35
- Use the ` ibexa_discounts_render_discount_badge ` to render a badge indicating the discount amount, for example on product cards.
35
+ Use the ` ibexa_discounts_render_discount_badge ` to render a badge indicating the discounted amount, for example on product cards.
36
36
37
37
``` html+twig
38
38
{% if ibexa_storefront_are_discounts_enabled() %}
@@ -71,7 +71,7 @@ content: ibexa_format_discount_value(discount),
71
71
72
72
### ` ibexa_discounts_is_active() `
73
73
74
- Helper function returning whether the current user has permissions to edit discounts .
74
+ Helper function returning whether the discount is currently active .
75
75
``` html+twig
76
76
{% if ibexa_discounts_is_active(discount) %}
77
77
<div>The discount is active</div>
You can’t perform that action at this time.
0 commit comments