Originally Posted by
robbie269
I've had people put in two payments for one order a few times too. It happens when they hit the button twice. Module needs a wait wheel so that people know to wait!
Happened to me once (customer hit the button twice) and implemented this (wait wheel or similar) in a 1.5.4 store.
Found an animated "We are processing your payment.... Please Wait" image in a Google image search (use whatever suits you but observe the Copyright notice). Named that image processing_animation.gif and placed it into the /images folder for use with any template.
Then open includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_confirmation_default.php - scroll to the bottom of the file and find
PHP Code:
<?php
echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
?>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?></div>
</form>
<div class="buttonRow back"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '<br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
change to
PHP Code:
<?php
echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
?>
<div class="centeredContent"><img id="actionImg" src = "images/processing_animation.gif" class="hiddenField" /></div>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?><br /><?php echo '<b>Press ONLY ONCE ....</b>';?></div>
</form>
<div class="buttonRow back"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '<br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
That image also shows up for other payment modules (eg PayPal ... slow response etc) - never had this issue ever since.
Bookmarks