Remaining time til product closes…

Archived from the Web Auction Discussion forum.

mmicall — Tue Sep 13, 2011 12:46 pm

I am loooking to get and order by the remaining time left in the public product list and the product details page -

I have had some luck but cannot get through it - somewhat of a newbe….

closing in: x days(d) - x hours(h) - x minutes(m) - x seconds(s)

or

closes in: 1day 2hours 40 min 20 sec

Thanks for any help!

Mike


shannah — Wed Sep 14, 2011 9:40 am

You can always sort based on any column using the -sort GET parameter. E.g. -sort=colname+asc or -sort=colname+desc

So you could easily sort on closing time or any other parameter. As far as displaying time remaining, you’ll probably be looking at modifying the templates/view_product.html template. I would probably create a calculated field for “time_to_close” or something in the products table delegate class. Then you can just call this from the template.

-Steve


mmicall — Thu Sep 29, 2011 8:00 am

Do you have any sample code for displaying time remaining - I have looked through it and have not been able to identify how to include the code in functions.inc.php and reference in public_product_list.html

any help is appreciated - Mike


marko — Mon Oct 03, 2011 3:12 am

Hi Steve,

Can i have also the code count of the bidders?

Thanks