Page 1 of 1
confirmation of auction bids?

Posted:
Thu Nov 15, 2007 7:36 pm
by studio67
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

Posted:
Fri Nov 16, 2007 1:54 pm
by shannah
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
thanks

Posted:
Fri Nov 16, 2007 5:10 pm
by studio67
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!

Posted:
Fri Nov 16, 2007 5:21 pm
by shannah
yes... and if you were going to just do the javascript method you would be modifying the templates/view_product.html template.
-Steve
ah

Posted:
Fri Nov 16, 2007 5:22 pm
by studio67
thanks even more. It helps to have someone that's walked down the sidewalk a couple of times.
