{% assign vatpercentage = settings.vat-percentage | plus:100 %} {% comment %}20{% endcomment %}
{% assign vattimes = vatpercentage | divided_by:100.00 %}
<span class="inc-vat h3 small--hide medium--hide js-prod-price">{{ element.price | times:vattimes | money }} {{settings.vat-label}}</span>
USAGE
{% include 'vatprice', element:product %}
SETTINGS
{
"name": "VAT Options",
"settings": [
{
"type": "text",
"id": "vat-percentage",
"label": "Percentage to increase price by eg(20)",
"default": "20"
},
{
"type": "text",
"id": "vat-label",
"label": "Label for VAT eg 'inc VAT'",
"default": "inc VAT"
}
]
}