It has been a while since this last post, and I still haven't find an ultimate solution to the problem. But I did create a stopgap that will help reduce the number of bad Paypal orders with messed up shipping.
In the checkout_confirmation.tpl.php code I added a javascript popup alert box warning the customers not to hit the back button when they are in paypal. I know you can't fix stupid, but hopefully people will read the box and find the "cancel" link on the paypal page to return to the site.
in checkout_confirmation.tpl.php
FIND:
Code:
echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "n";
CHANGE TO:
Code:
if ($order->info['payment_method'] == 'PayPal'){
echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER, 'onclick=
"alert('You are about to be taken to Paypal to complete your order.n Do not press the back button.n If you must return to this checkout page, find the link that says Cancel and Return.nnClick OK To Continue to PayPal.')"') . '</form>' . "n";
}
else{
echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "n";
}
Bookmarks