How do I add "vat excluded" on product pages next to the price- simple theme

Solved
Highlighted
New Member
2 0 0

Hi

 

Im trying to add "VAT EXCLUDED" on the product liquid so it shows below the price, but I seem not to be getting it right 

PLEASE HELP. My store theme is simple

0 Likes

Success.

Shopify Partner
455 80 99

@APSlay 

 

go into edit code, here find file - product-template.liquid

scroll at the line 109 you should see the following chunk of code.

          {%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
            <div class="product-single__policies rte">
              {%- if shop.taxes_included -%}
                {{ 'products.product.include_taxes' | t }}
              {%- endif -%}
              {%- if shop.shipping_policy.body != blank -%}
                {{ 'products.product.shipping_policy_html' | t: link: shop.shipping_policy.url }}
              {%- endif -%}
            </div>
          {% endif %}

 

 

replace it with the following one.

          {%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
            <div class="product-single__policies rte">
              {%- if shop.taxes_included -%}
                {{ 'products.product.include_taxes' | t }}
              {%- endif -%}
              {%- if shop.shipping_policy.body != blank -%}
                {{ 'products.product.shipping_policy_html' | t: link: shop.shipping_policy.url }}
              {%- endif -%}
            </div>
          {% else %}
          
            <div class="product-single__policies rte">
              VAT EXCLUDED
            </div>
          
          {%- endif -%}

as you can see we added "else" so if in shop settings the prices are set to NOT include taxes we show vat excluded.

Author: Hovhannes Sargsyan (aka sarhov).
An individual web developer focused on Shopify development.
Need more help? Feel free to send me a direct message or drop an email shopify@sarhov.com

Website: https://sarhov.com  
Email: shopify@sarhov.com
Skype: @sarhov
Messenger: @sarhov
Telegram: @sarhov
0 Likes