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.
1515
1616### ` ibexa_render_discount_rule_type `  
1717
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.
1919
2020```  html+twig 
2121{% set rule_type = discount.getRule().getType() %} 
@@ -32,7 +32,7 @@ This function transforms the discount type (`fixed_amount` or `percentage`) into
3232
3333### ` ibexa_discounts_render_discount_badge() `  
3434
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.
3636
3737```  html+twig 
3838{% if ibexa_storefront_are_discounts_enabled() %} 
@@ -71,7 +71,7 @@ content: ibexa_format_discount_value(discount),
7171
7272### ` ibexa_discounts_is_active() `  
7373
74- Helper function returning whether the current user has permissions to edit discounts .
74+ Helper function returning whether the discount is currently active .
7575```  html+twig 
7676{% if ibexa_discounts_is_active(discount) %} 
7777    <div>The discount is active</div> 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments