hlp Posted January 29, 2012 Share Posted January 29, 2012 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 More sharing options...
Richard S Posted January 30, 2012 Share Posted January 30, 2012 Disable products in your Catalog which you do not want to show Link to comment Share on other sites More sharing options...
hlp Posted January 30, 2012 Author Share Posted January 30, 2012 thanks. but it is not a solution. I need there products active. Link to comment Share on other sites More sharing options...
musicmaster Posted January 30, 2012 Share Posted January 30, 2012 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 More sharing options...
hlp Posted February 1, 2012 Author Share Posted February 1, 2012 tnx Link to comment Share on other sites More sharing options...
Recommended Posts