Paypal in iFrame - Post ID 213703

User 2507432 Photo


Registered User
4 posts

Im trying to display my cart in an iframe and paypal doesnt like it.

I know you have a support page on it:

We just want to start this article by saying that we do not recommend using Shopping Cart Creator with iframes. It's not exactly the best design practice, and you can achieve much better results with Shopping Cart Designer or Shopping Cart Designer Pro.

That said, if you're hell-bent on putting your shopping cart in an iframe, you may have noticed that Internet Explorer doesn't process transactions to the merchant properly. To fix this, you'll need to manually edit your shopping cart code. Here's how:

1.Use an FTP client like Direct FTP or Free FTP to connect to your server.
2.Find and open ccdata/data/goppwps.inc.php (for PayPal) or ccdata/data/cart_authnet_1.inc.php (for Authorize.Net).
3.Add this code to the <form> tag: target="_parent". It will look like this:
<form target="_parent">

After you make this change, Internet Explorer will handle transactions correctly.

My question is, where in the code do i pop this in? I popped it in the bottom right before the </form> close tag, is that correct?

<div class="paypal_feedback">
<a href="http://www.paypal.com" target="_blank"><img src="ccdata/images/PPLogo.png" align="right" border="0"></a>
<h3>Proceed to secure credit card checkout with PayPal</h3>
<p>Thank you for shopping with us!</p>
<p>We will now transfer you to the secure payment gateway where you can enter your credit card data.</p>
<br/><br/>
<form style="display:inline;" action="<?php echo $myPage->getUrl('cancel'); ?>" method="POST">
<input type="submit" name="return" value="Return to the Shop" />
</form>&nbsp;&nbsp;&nbsp;
<form style="display:inline;" action="<?php echo $myPage->getConfigS('PayPalWPS', 'URL'); ?>" method="POST">
<?php echo $checkout->getCheckoutFields() ?>
<input type="submit" name="_xclick" value="Proceed to Checkout" />
<form target="_parent">
</form>
</div>
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

It's here.:)
ccdata/data/goppwps.inc.php
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 322048 Photo


Registered User
2 posts

Is Derek's code correct?
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

Maybe he'll chime in with the results of his work. I'll assume he got it working since the amount of time that's gone by is quite substantial.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2507432 Photo


Registered User
4 posts

hey hey!

yes i got it to work w the above code. I only had to change first time. Eerytime i upload new items it works fine.

not sure y coffee cup doesnt just fix this
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

Thanks for that update Derek.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2507432 Photo


Registered User
4 posts

no problem

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.