Shopping Cart - Continue Shopping Dialog Box

haleyfont
New Community Member

We are using the PayPal shopping cart with Payments Standard. In Internet Explorer 8, when we want to leave the cart and go back to continue shopping, there is a dialog box that pops up saying that the Web site wants to close the page and asks if that's OK. That is very annoying. Is there anything that can be done to prevent the popup dialog box?

 

Thanks.

Login to Me Too
2 REPLIES 2

skier
Advisor
Advisor

Continue Shopping Button not working, missing or requesting a new browser window.
( These changes allow better functionality with IE, Firefox and Chrome. )

*** If you are using "clear text" item button meaning not "hosted" or "encrypted".
Modify the Form target line in both your Add to Cart and View Cart Button Code:
Replace the variable target="paypal" with the variable target="_self".

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_self">

 

 

Next, include the "shopping_url" variable to specify where the buyer will be returned after clicking the "Continue Shopping" button.
Add this line to your code to both your Add to Cart and View Cart Button Code:

 

<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/your_page.html">

 

 

*** If you are using Text Links:
Add the following to both your Add to Cart and View Cart Button Code:

 

&target="_self"&shopping_url=http://www.yourwebsite.com/your_page.html

 

 

*** If you are using "hosted" item button code:
In Step 3 of the button creation process look at the bottom you will see "Advanced Variables"
Note the text box near the bottom of the page. There you can insert extra variables.
Insert the "shopping_url" variable and value: shopping_url=http://www.yourwebsite.com/your_page.html
There's no HTML extras, just the name of the variable, an equal sign and the value.

 

Next, after you have created your "hosted" item button code.
Modify the Form target line:
Replace the variable target="paypal" with the variable target="_self".

 

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_self">

 

 

Finally, after you have made your changes to your item button code, be sure to delete your web browser's cookies before testing the changes. This ensures a clean start. Delete the browser's cookies, close the browser, reopen it and then test your code.

 

 

Regards,

 

skier

Login to Me Too

sbalysheva
New Community Member

Thank you so much. It worked great!

 

Svetlana

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.