Showing VAT and Non VAT Prices - "Warehouse" theme

vinnyatwork
Shopify Partner
10 0 4

Hi All,

Using the Maestroo theme WAREHOUSE

Does anyone have a working / workable solution to show Price £xxx.xx ex VAT and then £xxx.xx inc VAT immediately underneath it?

The fix would need to be implemented without the use of a subscription based app and would need to be something that could be added to the existing theme code.

 

It wouldn't have to look precisely like the screenshot below, but something "like" this would work well.

Many thanks in advance for any help you can offer.

bulbs.jpg

Replies 4 (4)

BlackCro
Shopify Partner
35 6 5

Below is the code required to calculate and display the price including 20% VAT. I'm not familiar with how your theme is structured but look for main-product.liquid or similar, and place the code below the current price display. You can replace the CUSTOM_CLASS with a pre-existing one for styling. 

 

{% assign vat_rate = 0.2 %}
{% assign base_price = product.price %}
{% assign vat_amount = base_price | times: vat_rate %}
{% assign final_price = base_price | plus: vat_amount %}
              
<div class="CUSTOM_CLASS"> {{ final_price | money }} inc VAT </div>

 

 

Hope this helps

BlackCro.co.uk

A creative code agency

TerenceKEANE
Shopify Partner
511 86 78

Hi!

 

If you provide the exact link to the relevant page, I can help you!

 

Terence.

★ Looking for Dedicated Premium Coding Support? Join our unique "PREMIUM SUPPORT" service starting at 59 USD for 1 MONTH!
★ Get skilled Shopify developers at BUDGET-FRIENDLY RATES — explore Novajetsoft.com for a rapid quote!
If my support was a lifeline for you, The COFFEE  
would be the anchor keeping me steady!
★ For Quick response --> WhatsApp | Email --> info@novajetsoft.com | Software Engineer - Specializing In Advanced E-Commerce Websites
vinnyatwork
Shopify Partner
10 0 4
TerenceKEANE
Shopify Partner
511 86 78

What's the password?

★ Looking for Dedicated Premium Coding Support? Join our unique "PREMIUM SUPPORT" service starting at 59 USD for 1 MONTH!
★ Get skilled Shopify developers at BUDGET-FRIENDLY RATES — explore Novajetsoft.com for a rapid quote!
If my support was a lifeline for you, The COFFEE  
would be the anchor keeping me steady!
★ For Quick response --> WhatsApp | Email --> info@novajetsoft.com | Software Engineer - Specializing In Advanced E-Commerce Websites