Page 1 of 1
How to Show Bid History on the View Product Page

Posted:
Thu Sep 03, 2009 1:52 pm
by rickyspears
Being able to see who has bid on an item creates friendly bidding wars in our group. Unfortunately, it seems that only the administrator can see them. Is there a way to show all the bids and bidder's names on the Product page? I've added the "Current High Bidder" name that I saw in another thread in this forum, but I haven't been able to figure out how to show the full bid history on the page.
Any help would be greatly appreciated!

Posted:
Wed Sep 09, 2009 9:51 am
by shannah
You can access the bids as follows:
- Code: Select all
{foreach from=$product->getRelatedRecordObjects('bids') item=bid}
{$bid->val('username')} : {$bid->val('bid_amount')}
{/foreach}
Etc.. you can access any field in the bids table by this method. I have only shown the username and bid_amount in this snippet.

Posted:
Thu Sep 10, 2009 11:16 am
by rickyspears
Perfect! Thank you!
Re: How to Show Bid History on the View Product Page

Posted:
Thu Oct 06, 2011 1:34 am
by marko
hi steve
it is possible that show the date and time of bid.
Thanks and regards,
Mark
Re: How to Show Bid History on the View Product Page

Posted:
Thu Oct 06, 2011 10:16 am
by SCAScot
Ooh, this is a tasty tidbit - where does the code go?
Re: How to Show Bid History on the View Product Page

Posted:
Fri Oct 07, 2011 11:47 am
by SCAScot
Nevermind - I figured it out.
I'd like to include the timestamp of the bid in the history, but can't seem to get that to work. Any help would be appreciated.
Re:

Posted:
Tue Nov 08, 2011 3:44 pm
by GrizBear
shannah wrote:You can access the bids as follows:
- Code: Select all
{foreach from=$product->getRelatedRecordObjects('bids') item=bid}
{$bid->val('username')} : {$bid->val('bid_amount')}
{/foreach}
Etc.. you can access any field in the bids table by this method. I have only shown the username and bid_amount in this snippet.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Could you please let us know in which file and where we might put this tidbit. I thank you a kajillion times.....
These little items makes it a fun program to work with...
Hope to find more here....,.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Re: How to Show Bid History on the View Product Page

Posted:
Thu Nov 10, 2011 10:34 am
by shannah
That would go in the view_product.html template.
-Steve
Re: How to Show Bid History on the View Product Page

Posted:
Thu Nov 10, 2011 4:33 pm
by GrizBear
shannah wrote:That would go in the view_product.html template.
-Steve
Thanks Steve....I just to need a small hint on where in the file is the best spot to incl this snippet......
L8tr
Re: How to Show Bid History on the View Product Page

Posted:
Sun Nov 13, 2011 3:21 pm
by fluffybutts
I want to show who bid and how much, too, but I can't find the view_product.html template. Where is it? Thanks. Love this application!
Re: How to Show Bid History on the View Product Page

Posted:
Sun Nov 13, 2011 3:54 pm
by shannah
templates/view_product.html