Shopify themes, liquid, logos, and UX
Hi! Is it possible to show dual pricing, or just the price exluded of VAT? I still want the price to include VAT once the customer reaches the checkout. We are only selling to other businesses hence why we want to not include VAT in the product listings. We are using the Local theme.
Hi @Kimpa123 ,
To include or exclude tax from product prices:
Please don't hesitate to reach out if you need further help optimizing or customizing your store. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
LuffyOnePiece
Thanks for your reply, however this does not solve the checkout issue. I want to exclude VAT from the product listings, however once the customer goes through the final stage of checkout I want the price to include VAT.
Hi @Kimpa123
I can send you a sample code for this,
changing this part in price.liquid :
{% liquid
assign compare_at_price = target.compare_at_price
assign price = target.price | default: 1999
assign available = target.available | default: false
assign money_price = price | money
assign tax_price = target.price | default: 1999 | times: 1.20
assign tax_money_price = tax_price | money
%}
and finally this one :
<div class="price__regular">
<span class="visually-hidden visually-hidden--inline">{{ 'products.product.price.regular_price' | t }}</span>
<span class="price-item price-item--regular">
{{ money_price }} HT
</span>
</div>
<div class="price__regular tax__price">
<span class="tax-included-price price-item price-item--regular">
{{ tax_money_price }} TTC
</span>
</div>
The theme does only include a product-price.liquid. This is the full content of the file:
<div class="product-price">
{%- if product_price_varies -%}
<span class="product-price--original" data-js-product-price-original>
{%- liquid
assign price = target.price | money
if target.compare_at_price > target.price or target.compare_at_price_varies
echo 'products.grid.on_sale_from_html' | t: price: price
else
echo 'products.grid.from_text_html' | t: price: price
endif
-%}
</span>
{%- else -%}
<span class="product-price--original {{ text_size_class }}" data-js-product-price-original><span class='ymq-b2b-price-hidden' ymq-b2b-product-id='{{ product.id }}' ymq-b2b-product-handle='{{ product.handle }}' ymq-b2b-variant-price ymq-b2b-variant-id='{{ variant.id }}' >{{ target.price | money }}</span></span>
<del class="product-price--compare" data-js-product-price-compare>
{%- liquid
if target.compare_at_price > target.price
echo target.compare_at_price | money | prepend: '<span>' | append: '</span>'
if show_saving
assign saving = target.compare_at_price | minus: target.price | money
echo 'products.page.sales_amount_html' | t: amount: saving | prepend: '<span>' | append: '</span>'
endif
endif
-%}
</del>
{%- endif -%}
<span class="product-price--unit text-size--regular" data-js-product-price-unit>
{%- liquid
if variant.unit_price_measurement
echo variant.unit_price | money
echo ' / '
if variant.unit_price_measurement.reference_value != 1
echo variant.unit_price_measurement.reference_value
endif
echo variant.unit_price_measurement.reference_unit
endif
-%}
</span>
</div>{% comment %}<!-- ymq b2b done -->{% endcomment %}
Hi @Kimpa123 ,
Can you please provide me the access so that I can help you out?
Thank you
Sure, how do I send you a collaborator request?
How do I provide you access?
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025