Only Show items with Open Auction Dates- Solved

A place to discuss and receive support for the Web Auction application.

Only Show items with Open Auction Dates- Solved

Postby JGerrity » Mon Mar 19, 2012 1:35 pm

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.
JGerrity
 
Posts: 16
Joined: Fri Mar 02, 2012 4:43 pm

Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved