Jump to content

Don't show products with Price=0


Recommended Posts

I am using 1.4.6.2 version.

 

So I have some product that has a 0 price (may be also after reduction etc) = so if you see the category / product detail etc you see Price = 0

 

so I would like to filter that Products and don't show it on my site. just show products (and categories etc) that has a price > 0

 

how I can do this?

 

 

tia

Gennadi

Link to comment
Share on other sites

To say it exactly I would have to experiment as I am not that good in the Smarty syntax. So take the following as an indication how it should work. It may contain some bugs.

 

I would suggest you to change the "product-list.tpl" file in your template. This is the file that takes care of the listing of products on the category page. After the line "{foreach from=$products item=product name=products}" you should place a condition:

{if $product.price == 0}
   {continue}
{/if}

This will not stop the individual product pages from working but at least nothing would point to them. If you want you could place a similar condition the product.tpl page.

Link to comment
Share on other sites

×
×
  • Create New...