How to display tax rate in a Liquid file?

eozbay
Shopify Partner
1 0 0

Hi Guys,

I want to access the Tax rate in any Liquid file and show it on the page. For example, with which variable can I access it on the product page?

Reply 1 (1)

PaulNewton
Shopify Partner
6275 573 1323

You either need to hard code the values, or use something like metafields to expose the info in liquid.

 

Tax data is not exposed in liquid except if a variant is taxable, and limited places for amount on line items where tax has been actually calculated, or a id or status.

https://shopify.dev/docs/api/liquid/objects/variant#variant-taxable 

https://shopify.dev/docs/api/liquid/objects/cart#cart-taxes_included  

DEPRECATED https://shopify.dev/docs/api/liquid/objects/shop#shop-taxes_included 

https://shopify.dev/docs/api/liquid/objects/checkout#checkout-tax_price 

 

https://shopify.dev/docs/api/liquid/objects/tax_line 

https://shopify.dev/docs/api/liquid/objects/cart#cart-taxes_included 

 

 

https://shopify.dev/docs/api/liquid/objects/company_location#company_location-tax_registration_id 

https://shopify.dev/docs/api/liquid/objects/customer#customer-tax_exempt 

 

Also see the many topics on VAT price displays.

 

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org