confirmation of auction bids?

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

confirmation of auction bids?

Postby studio67 » Thu Nov 15, 2007 7:36 pm

Does anyone working with the webauction application have any code or advice on adding in a confirmation for bids? Basically "you're fixing to bid a hundred bucks, bucko - are you sure?" y/n...

thx so much
s
studio67
 
Posts: 5
Joined: Thu Nov 15, 2007 3:36 pm

Postby shannah » Fri Nov 16, 2007 1:54 pm

This isn't too difficult to do. You just need to modify the actions/bid.php file to be 2 steps.

One strategy might be to check first to see if a '--confirmed' post variable is set. If it isn't it shows the confirm dialog. Otherwise, it goes through normally.

Of course you would have to duplicate the form with hidden fields on the first step....

An easier way would be to just show a javascript confirm dialog when they initially submit the bid form. This has the downside of being circumventable by turning off javascript in the browser.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

thanks

Postby studio67 » Fri Nov 16, 2007 5:10 pm

so bid.php, eh? Thanks for pointing me in the right direction. I'm still getting the lay of the land a little there.

thanks!
studio67
 
Posts: 5
Joined: Thu Nov 15, 2007 3:36 pm

Postby shannah » Fri Nov 16, 2007 5:21 pm

yes... and if you were going to just do the javascript method you would be modifying the templates/view_product.html template.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

ah

Postby studio67 » Fri Nov 16, 2007 5:22 pm

thanks even more. It helps to have someone that's walked down the sidewalk a couple of times. :)
studio67
 
Posts: 5
Joined: Thu Nov 15, 2007 3:36 pm


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 16 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved