Jump to content

exclude products from product list


jaanrs

Recommended Posts

Hello,

 

I would like to exclude items that are marked as "online only" from the product list.

 

The beginning of the product-list.tpl is:

 

<ul id="product_list" class="categorie_product clear">
{foreach from=$products item=product name=products}
	<li class="ajax_block_product ........etc........>

 

Putting in this:

 

<li {if $product.online_only}style="display:none"{/if}>

 

removes the products from the list, but they still take up space in the list. So I'm thinking the only way is to exclude the products that are set to be online only from the foreach itself, but have no idea how to do this :wacko: Please help! :rolleyes:

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...