Hi all
I have a real problem with an e-commerce site which has worked for years without a hitch but with the uptake of IE8 (it seems) this problem is getting more and more frequent.
Problem: customer continues through checkout on main site ([url]http://www.abc.co.uk/checkout.php
When they have to enter their credit card details, they click on a link to open a window ([url]https://www.abc.co.uk/cc.php[url]http://www.abc.co.uk/thanks.php
Pop-up blockers are causing problems here but even when pop-up blockers are disabled, the confirmation page loads in a new window.
I’m using :
<script language=”JavaScript”>
<!–
window.opener.location=”<?php echo ($main_url);?>thanks.php>”;
window.close();
–>
</script>
I’ve tried as a test:
<a href=”#” onclick=”window.opener.location.href ='<?php echo ($main_url);?>thanks.php?’; window.close(); “>Click HERE</a>
But the page always loads in a new window and not the parent window.
Is there any way to load the confirmation page in the parent window?
Help appreciated, thanks.