Continue shopping return button

PeterV
Contributor
Contributor

Hi!

I´m recently started a small business and have implemented PayPal as a mean for my buyers to pay for my merchendises. It´s seems to work excellent but theres one function I´m not satisfied with and would like to change.

 

When a buyer clicks on an item they are directed to "Your Shopping Cart". On that page there´s a "Continue Shopping" button thats returns the buyer to the page where they came from. When the buyer clicks on the "Continue Shopping" button I would like to have the buyer redirected from "Your Shopping Cart" page to a specifik webpage instead of the last visited. The autoredirection is, as I understand it, only configurable for the page that´s comes after payment is done. How do I implement my idea on my web site?

 

My tests shows that the redirection I prefer works with Firefox but not in IE9. The  "Continue Shopping" buttons default redirect function on "Your Shopping Cart" page works as I like in Firefox but not in IE9. In IE9 it´s redirects to a subfolder on my webpage but in Firefox it´s redirects to the original page wich is framebased. I would like it to act in IE9 as it´s acting in Firefox. 

Regards Peter

Login to Me Too
1 REPLY 1

snowshoe
Frequent Advisor
Frequent Advisor

You want to use the shopping_url variable in your item button code.  Below are some tips:

 

( These changes allow better functionality with IE, Firefox and Chrome. ) 


* If you are using non "hosted" or "encrypted" item button code. 

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". 
Your line of code should look similar to this example: 
<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. 

 

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.