Has Tax
{exp:cartthrob:has_tax} returns whether the current cart has a tax amount greater than 0.
See also:
Parameters
This tag has no parameters.
Output
This tag returns string values:
TRUEwhen tax is greater than zero.FALSEwhen tax is zero.
The check is based on the cart tax total (cart->tax()), cast to float.
Examples
Code:
{exp:cartthrob:has_tax}
Conditional:
{if "{exp:cartthrob:has_tax}" == "TRUE"}
Tax is applied.
{/if}