Jump to content

Show tax label in product list


Recommended Posts

Hi,

 

I want to show the tax label in the product list also. I have managed to get it on the product page, thanks to this forum, but unfortunately not in the product list.

 

So, below or after the price I want to show: Excl. tax or Incl. tax.

 

How can I get this done?

 

I'm using PS 1.6.0.9.

 

Thanks for your help,

Jason

 

Link to comment
Share on other sites

  • 7 months later...

Hello Jason,

 

Maybe a little late but if you still need it, i just found out copying the same from product.tpl dont work. Following works for me. Only he dont take the translation so the ''input" is static.

 

 

In product-list.tpl you need to find:

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="content_price">
						{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
							<span itemprop="price" class="price product-price">
								{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}

To:

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="content_price">
						{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
							<span itemprop="price" class="price product-price">
								{if !$priceDisplay}{convertPrice price=$product.price} {l s='incl. tax'}{else}{convertPrice price=$product.price_tax_exc} {l s='excl. tax'}{/if}

If you want to change the Hover price to:

<div class="content_price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
								{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
									<span itemprop="price" class="price product-price">
										{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}

Change to:

<div class="content_price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
								{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
									<span itemprop="price" class="price product-price">
										{if !$priceDisplay}{convertPrice price=$product.price} {l s='incl. tax'}{else}{convertPrice price=$product.price_tax_exc} {l s='excl. tax'}{/if}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...