Jump to content

Edit History

Mian Waqas

Mian Waqas

2 hours ago, AddWeb Solution said:

You can get it using $product.price*($product.tax_rate/100) from your product.tpl file

In your case, the code will be something like 

{if $product.tax_rate > 0}
	{assign var="tax_amount" value=$product.price*($product.tax_rate/100)}
	{assign var="tax_label" value="XYZ"}
{else}
	{assign var="tax_amount" value=0}
	{assign var="tax_label" value="ABC"}
{/if}

<p>{tax_label}</p>

Thank you for the reply, however i have tried to test these codes but not getting succeed. this i am doing on product-prices.tpl

Mian Waqas

Mian Waqas

2 hours ago, AddWeb Solution said:

You can get it using $product.price*($product.tax_rate/100) from your product.tpl file

In your case, the code will be something like 

{if $product.tax_rate > 0}
	{assign var="tax_amount" value=$product.price*($product.tax_rate/100)}
	{assign var="tax_label" value="XYZ"}
{else}
	{assign var="tax_amount" value=0}
	{assign var="tax_label" value="ABC"}
{/if}

<p>{tax_label}</p>

Thank you for the reply, however i have tried to test these codes but not getting succeed. this i am doing on product-prices.tpl

 

×
×
  • Create New...