What's your biggest current challenge? Have your say in Community Polls along the right column.

How to display tax rate in a Liquid file?

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
7481 658 1566

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.

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


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

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