
Originally Posted by
janellez
If you can let me know how to mod the mod for the auction buttons, I would really apprectiate it.
OK... using 99a two files need to be modified.
includes\modules\pages\product_auction_info\jscript_main.php
Just above this line //--></script> added the following.. you may have to adjust the image pathway to match your site.
Code:
function SubmitOrderButton(){
document.getElementById("submitmain").style.display = "none";
if (navigator.appName == "Microsoft Internet Explorer") {
document.getElementById("pleasewait").innerHTML = "";
document.getElementById("pleasewait").style.display = "block";
document.getElementById("pleasewait").innerHTML = "<img src='../images/pleasewait_2.gif' alt='Please Wait'><br /><strong>Please wait your bid is processing</strong><br />";
} else {
document.getElementById("pleasewait").style.display = "block";
}
}
Next file.. includes\templates\template_default\templates\tpl_product_auction_info_display.p hp
line 164 find the line with zen_drew_form, find
Code:
'onsubmit="return check_form(place_bid);"'
replace with this..
Code:
'onsubmit="return SubmitOrderButton();"'
line 176 replace this line ..
Code:
<td><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT_AUCTION_BID, BUTTON_SUBMIT_AUCTION_BID_ALT); ?></td>
with this line..
Code:
<td><div id="submitmain" ><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT_AUCTION_BID, BUTTON_SUBMIT_AUCTION_BID_ALT); ?></div>
<div id="pleasewait" class="main"><?php echo zen_image(DIR_WS_TEMPLATE_IMAGES .'pleasewait_2.gif', 'Please Wait') . '<br /><strong>Please wait your bid is processing</strong>';?></div></td>
I don't have a working 99a test site so this is untested... make sure you test it before going live. This same format is what I'm using on my site...
Bookmarks