Ecommerce Shopify WordPress Discussion

How to Shopify Display Exc VAT Price for Product Variants?

Been working on a website where I want two prices to appear on the product page. Default Inc VAT Price Exc VAT Price, which would be the default price divided by 1.2 We're using the enterprise theme and I've managed to get it to display on the product page by amending the main-product.liquid file. {%- when 'price' -%} <div class="product-info__block product-info__block--sm product-price" {{ block.shopify_attributes }}> <div class="product-info__price"> {% render 'price', product: product, use_variant: true %} <p> {{ product.price | divided_by: 1.2 | money }} ex. VAT </p> </div> However, the problem I have now is that the price doesn't update when clicking on different variations that the product has, the default price does update, just not the Exc VAT price I've added in. Any pointers? Thanks.
You can edit price.liquid file. Your calculation assign tax_price = target.price | divided_by: 1.2 assign tax_money_price = tax_price | money Your markup <div class="price__regular tax__price"> <span class="tax-included-price price-item price-item--regular"> {{ tax_money_price }} excluding VAT. </span> </div> Result if any doubts please comment

December 30, 2023

TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.