"Continue Shopping" link goes to my root URL, not to specified URL

artemisG
Contributor
Contributor

Hi Everyone. I'm a long-time paypal shopping cart user, first-time poster.

I've noticed recently that when l click one of my "Add to Cart" buttons, it goes to Paypal but then if l click "Continue Shopping", it goes to my root URL, not to my specified URL. Sorry to waste your time. I have edited this post to say l think l found the problem. Had somehow disabled 'Auto Return' in 'account settings'

Login to Me Too
4 REPLIES 4

MTS_Chiranjeevi
Moderator
Moderator

Good day @artemisG,

 

Thank you for posting to the PayPal community.

 

When a buyer clicks the Add to Cart button, the PayPal shopping cart page opens. The buyer can see the items in the cart and begin check out or click the Continue Shopping button to return to your website and add more items to the cart. This is expected product flow. 

 

Use the shopping_url variable to specify which page PayPal returns buyers to when they click the Continue Shopping button. You can set the value of the shopping_url variable if you know the URL for the web page where the button appears.

 

https://developer.paypal.com/api/nvp-soap/paypal-payments-standard/integration-guide/html-example-ca... 

 

Then add the following line, which redirects the customer to the URL you specify when he or she clicks the Continue Shopping button:
   

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

 https://www.paypal.com/ca/smarthelp/article/cked-continue-shopping-in-the-paypal-shopping-cart-ts138... 

 

shopping_url

The URL of the page on the merchant website that buyers go to when they click the Continue Shopping button on the PayPal Shopping Cart page.

For more information see Continue shopping on current the merchant web page.

 

https://developer.paypal.com/api/nvp-soap/paypal-payments-standard/integration-guide/Appx-websitesta...

 

Hope that below information is helpful. 

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

artemisG
Contributor
Contributor

Thanks Chiranjeevi, but it's made no difference. I'm specifying /shop but it's still taking me to the root.

Login to Me Too

KHPAZ
New Community Member

Adding the "shopping_url" link only works with the "View Cart" button.  The add to Cart buttons still return to the home page. Even though the return page is listed in the Button generator.   Is there a different link to add to the "Add to Cart" button code?

 

Login to Me Too

KHPAZ
New Community Member
 
I found this answer in another thread.  It worked for me. KHPAZ
Scott_SVDP 

 

Contributor
 
‎May-22-2022 07:04 AM

Found a solution to "continue shopping" link taking me to my home page instead of the page it came from.  https://www.paypal-community.com/t5/Business-Tools-Archives/Continue-Shopping-button-sends-Home/m-p/...

 

From that post:

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.
Be sure to save the code. As you're using the hosted button code, you won't have to recopy the code to your web page again because that info is saved to the PayPal Servers. You need to edit each button the same way. This way you can return the customer back to your site or any specific page you desire.

 

I simply edited the code of my "saved button" and added the page url as described above and resaved and it volia!  It worked

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.