Jump to content
Seb17

Cacher prix a 0 dans la liste des produits

Recommended Posts

Bonsoir à tous

Prestashop 1.6.x

Je cherche a cacher dans la liste des produits dans une catégorie le tarif si = à 0

Quelqu'un pourrait me donner un petit coup de pouce

Merci d'avance

 

Share this post


Link to post
Share on other sites

Bonjour,

product-list.tpl

<span itemprop="price" class="price product-price">
  {if $product.price == 0}
  	{l s='Free'}
  {else}
    {if !$priceDisplay}
    	{convertPrice price=$product.price}
    {else}
    	{convertPrice price=$product.price_tax_exc}
    {/if}
  {/if}
</span>

 

Share this post


Link to post
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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More