+813-444-3589+44 118 328 3220+49-231-976765-0 | Contact us

Rebates

The shop owner can activate rebates, which provide a percentage rebate for a given quantity scale. There can be several quantity ranges with different percentages defined. Further some rebates are only valid for some licenses, etc. A list of this object type is with the global rebates object, to specify which quantity scales are available for the items in the shop. This object has the following fields:

Variable name Object Description Note
Description string The description of the rebate, as provided by the shop owner. EF
Name string The name of this rebate. EF
Rebates List<RebateEntry> Returns the list of possible quantity scales with their appropriate percentages.  

Example:


{% for rebate in rebates %}
 {{ rebate.name }}
 {% if rebate.description.size > 0 %}({{ rebate.description }}){% endif %}
 {% for e in rebate.rebates %}
 {% if forloop.first and e.from_items > 1 %}
 1-{{ e.from_items | minus: 1 }} : Normal price
 {% endif %}
 {{ e.from_items }}-{% if e.to_items > 0 %}{{ e.to_items }}{% endif %} : {{ e.percentage }}% off
 {% endfor %}
{% endfor %}

 

Output:


Rebate
(Quantity Rebate)
0-9 : 0% off
10-24 : 15% off
25-149 : 25% off
150- : 40% off