Page 1 of 1

Only Show items with Open Auction Dates- Solved

PostPosted: Mon Mar 19, 2012 1:35 pm
by JGerrity
Hello,

As part of my last post under the email $URL topic, I asked a question if it was possible to show only items that had open auction dates. I figured it out and thought I'd share in case anyone else wanted to make this change.

Modify templates/public_product_list.html and change:
Code: Select all
{foreach from=$products item=product name=product}
   <li><a class="product-link" href="{$product->getURL('-action=view')}">


to:
Code: Select all
{foreach from=$products item=product name=product}
{if $product->val('isOpen')}
   <li><a class="product-link" href="{$product->getURL('-action=view')}">
Adding the {if $product->val('isOpen')} line.

Don't forget to add the endif {/if} just before the close of the foreach loop ie:
Code: Select all
{/if}   
{/foreach}


Cheers,
J.