Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

IE bug? redirects to basket after checkout


FridayNight

Recommended Posts

Posted

hi there,

 

i got a strange problem with the internet explorer (everything alright with firefox and opera), when the user finish his order by confirming he is being redirected to an empty basket instead of the "checkout_success" page.

 

I really dont't know what the problem can be?

Posted

I found these lines in the checkout_confirmation.php file it looks like I did some changes here with one of the contributions.

 

//  echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "\n";
 echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER, ' onClick="validate();" ') . '</form>' . "\n";

 

and this is the function

 

<script language="JavaScript">
<!--
var _submitted = false;

validate = function () { 
_submitted = ( ! _submitted ) ? true : true; 
if ( _submitted ) document.getElementById( "checkout_confirmation" ).submit();
}
-->
</script>

 

 

 

Maybe the call of the validate function reloads the page and then redirect it to the empty basket.

 

// if there is nothing in the customers cart, redirect them to the shopping cart page
 if ($cart->count_contents() < 1) {
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
 }

 

Any idea which contribution this was? Anybody the same problem with the Internet Explorer (Firefox and Opera works)?

Posted

I think this contribution stoped user from hitting the confirmation button twice, but can't remember the name...

 

but I am pretty sure that others have installed this contribution and i wonder if the have the same problem with the Internet Explorer?!?

Posted

I disabled the validate check and the checkout confirmation plus the following success page work perfectly again with the Internet Explorer.

 

This is the contribution "Prevent Multiple Clicks on Checkout Confirmation":

 

http://www.oscommerce.com/community/contributions,4462

 

 

Anyone who installed it should check the checkout process with the Internet Explorer!!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...