Liquid Template Variables - tax line

From Spiffy Stores Knowledge Base

Revision as of 13:10, 12 February 2016 by Admin (talk | contribs) (Created page with "A '''tax line''' represents a single line of taxation charges in an order. == <code>tax_line.title</code> == Returns the description of the tax line. <pre> {{ tax_line.titl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A tax line represents a single line of taxation charges in an order.

tax_line.title

Returns the description of the tax line.

{{ tax_line.title }} => GST

tax_line.rate

Returns the tax rate of the tax line.

{{ tax_line.rate }} => 0.10

tax_line.rate_percentage

Returns the tax rate of the tax line as a percentage.

{{ tax_line.rate_percentage }}% => 10%

tax_line.price

Returns the amount of the tax. A money filter can be used to return the value as a monetary amount.

{{ tax_line.price | money }} => $12.34