When a auction product is created, all the information are missing.

I should be able to see the following inside the table:
time left
current bid
highest bid

The place bid button is missing too.

I checked that the access rules of the user is able to place bid.

Comments

wojtha’s picture

Same problem here. I've found this piece of code in the source of auction module

// Called via product_view() which is an implementation of hook_view().
function theme_product_auction_view($node, $teaser = 0, $page = 0)

The problem is that the product_view() function doesn't exist in the Drupal 5.0 version of product.module

wojtha’s picture

Title: Missing content for auction products » Blank content for auction product due to missing Hook product_view() in product.module

Making title more accurate

Missing *place bid button* solved here: http://drupal.org/node/118076

gordon’s picture

This is correct product_view() is no more. This is now handled by the nodeapi()

This function needs to be converted into a nodeapi function.

wojtha’s picture

Status: Active » Needs work
StatusFileSize
new11.02 KB

Hi!

I've made port to D5, using nodeapi view instead of the product_view as neclimdul and gordon advised me.

I think the code need some work to be 100% Drupal 5, but it seems to work without problems in the D5 now.

neclimdul’s picture

Thanks for the start. Could you update so the latest changes are present(hook_link) and clear out the odd spaces so the patch just contains the changes you've made?

Also, could you change your editor to use spaces instead of tabs? This is compliance with the drupal coding standards. If you haven't glanced through the standards they are in the handbook. Thanks!

wojtha’s picture

StatusFileSize
new11.32 KB

Strange thing with the tabs, I had Eclipse set to *space intendation*, I have to change tabs to spaces in some other editor.

So here is a rerolled patch against newest dev cvs DRUPAL-5--3 branch (11 Feb 2007 19:11:52 1.19.2.3.2.1.2.8). I made some structural changes, clean code a little and add few comments to the code.

wojtha’s picture

I've been testing the patch further today, and I've found bug. Please don't use my patch for now. The problem is, that every product is now rendered as an auction ... My patch is a little alien ;-)

I'm going to fix it. Sorry for that.

wojtha’s picture

StatusFileSize
new10.79 KB

Here is rerolled patch. I've also fixed some another bug - user, who went to checkout had to pay all of his bids, not only the winnig bids.

sime’s picture

Status: Needs work » Fixed

Thanks @wojtha !!

Great patch, I'll take that anytime.
http://drupal.org/cvs?commit=56377

Anonymous’s picture

Status: Fixed » Closed (fixed)