News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

URGENT! Paypal wont open in IE!! "This content cannot be displayed in a frame "

Started by shakir, August 13, 2012, 02:26:55 AM

Previous topic - Next topic

shakir

When checking out, the site tries to go to Paypal but we get the error:

"This content cannot be displayed in a frame 
   To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame."

Using Internet Explorer!
I updated to latest build of VM2 and it doesn't fix the problem.

I found a similar problem on the old version of VM and the solution to it back then is listed here http://forum.virtuemart.net/index.php?topic=88800.0 although this file does not exist in vm2 but someone may have a fix for it!??
Please help as it's urgent.
Thanks :)





shakir

So far I have found a clumsy work-around that half fixes the problem.

in file plugins/vmpayment/paypal/paypal.php I edited the submit to include   target="new"
This stops it from totally failing but triggers IE popup blocker which you can either temporarily disable or you can click the 'please wait while ...' virtuemart button to bypass and redirect manually.

Both seem o now parse the order details to paypal.
But its not very nice.

If there is a fix please let us know
Thanks



   // add spin image
      $html = '<html><head><title>Redirection</title></head><body><div style="margin: auto; text-align: center;">';
      $html .= '<form action="' . "https://" . $url . '" method="post" name="vm_paypal_form" target="new">';

shakir

AAAARGH!!
I spoke too soon!

Applying this fix, while allowing it to kind of work in IE, stops it from working automatically in chrome so you may need to disable popup blocker there or any other browser.

There must be a better way to fix the TARGET setting without being a popup!