Jump to content

How to hide price and [add to cart] button in product.tpl?


Recommended Posts

Hi, I've got the similar problem.

 

I've got prestashop 1.3

How can I hide the price in one good card product.tpl if the the price is zero?

 

{if !$priceDisplay || $priceDisplay == 2}

<span id="our_price_display">{convertPrice price=$product->getPrice(true, $smarty.const.NULL)}</span>
{if $tax_enabled}{l s='tax incl.'}{/if}{/if}

 

This way

{if $product.price != 0} code  {/if}
{if $product->getPrice != 0} code {/if}

doesn't work in this case

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...