Page 1 of 1

Remaining time til product closes...

PostPosted: Tue Sep 13, 2011 12:46 pm
by mmicall
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

Re: Remaining time til product closes...

PostPosted: Wed Sep 14, 2011 9:40 am
by shannah
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

Re: Remaining time til product closes...

PostPosted: Thu Sep 29, 2011 8:00 am
by mmicall
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

Re: Remaining time til product closes...

PostPosted: Mon Oct 03, 2011 3:12 am
by marko
Hi Steve,

Can i have also the code count of the bidders?

Thanks