How do I program the continue shopping button to return to my site?

margarette
New Community Member

I just setup Paypal add to cart button and it works great. Where I need help is when I click on the button it takes me to paypal shopping cart area but when I click on the continue shopping button I doesn't return to my website. How do I program this?

Thanks in advance for the help!!

Scott

Login to Me Too
27 REPLIES 27

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

FLGRANDPA
Contributor
Contributor

Please help me.  I get another layered screen on top of the original, every time I click continue shopping.  I don't remember this at first, I may have added something somewhere which is doing this.  I only have two items with add to cart buttons, the view cart button and the logo.  All made my Paypal, nothing custom.  I am not a programmer. 

P.S.  I am new at this, and when I tried to post a topic it kept asking me for a location at the bottom of my screen.  I don't see any choices or place to put it in?  That is why I am attaching to this message of similar subject.Smiley Sad

Login to Me Too

skier
Advisor
Advisor

You would have to modify your item button code as explained in the previous post.

 

We would need to see what you have done so far, need a URL to the web page that has your item button code?

 

Regards,

 

skier

Login to Me Too

FLGRANDPA
Contributor
Contributor

Thanks for your reply.  I haven't figured out how to do the sand box thing, right now if I flip the second version of my website live, it would be just that.  Can I do it otherwise so that you could see it?  How does that work?

Login to Me Too

skier
Advisor
Advisor

We need to see what you are seeing, can you provide an address or link to your web page that has the item button code?

 

Regards,

 

skier

Login to Me Too

FLGRANDPA
Contributor
Contributor

I will flip the webpage with the bottoms live.  www.GrandpaandGranny.com Under shirts or books there are buttons.  Again, this is nothing I made.  Just the click and add Paypal buttons.  I read somewhere that maybe Internet Explorer had a problem.  I just don't remember this happening the first time I tried all this.  Thanks.  Let me know what you get and I will flip the webpage back.  Like I said, the sandbox thing escapes me for now.  Good luck

Login to Me Too

skier
Advisor
Advisor

Sorry, I don't see any item button code under shirts or buttons.

 

 

Regards,

 

skier

Login to Me Too

FLGRANDPA
Contributor
Contributor

You were too fast for me.  Try it now.

Login to Me Too

skier
Advisor
Advisor

Nope, not yet, still don't see any buttons.


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.