cart problem

funfun
Contributor
Contributor

Dear sir,

I created a paypal cart in my website but I found that the setting is inconvenient to buyer.

 

In my product page, buyer clicks ADD TO CART button and the cart will pop up in a new browser, but when they click "continue shopping" button in cart, the cart will close and my product page will open in new browser!

 

I'm wondering if I can choose not to pop up a new page of my product page? It's because I am worried that the buyer will need to close & open many browsers when they buy many different products....

Please help !

Login to Me Too
1 REPLY 1

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

Haven't Found your Answer?

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