I have a Magento store running inside of a frameset. Paypal recently updated their framebusting script which ended up disabling our store’s ability to process payments.
I’ve ended up changing the code that renders the Checkout button to launch Paypal in a new window and in that window I’ve successfully set it up to be able to return to the confirmation page.
However in the original window I’m left with a blank screen inside of our iframe. What i’d like to do is have this window close when the new window is launched but I’m having difficulty doing so. This is the code that I’m using:
<button type="submit" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" onclick="review.save(); window.open('http://auxout.com/shop/paypal/standard/redirect/')"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
Since this button is inside the <iframe> I haven’t been able to close the initial window. How can accomplish this?
In the end the solution was to change to and just restyle the link with CSS