Remaining time til product closes...

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

Remaining time til product closes...

Postby 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
mmicall
 
Posts: 2
Joined: Tue Sep 13, 2011 12:02 pm

Re: Remaining time til product closes...

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Remaining time til product closes...

Postby 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
mmicall
 
Posts: 2
Joined: Tue Sep 13, 2011 12:02 pm

Re: Remaining time til product closes...

Postby marko » Mon Oct 03, 2011 3:12 am

Hi Steve,

Can i have also the code count of the bidders?

Thanks
marko
 
Posts: 7
Joined: Thu Sep 08, 2011 10:21 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