The PayPal "Continue Shopping" buttons don't behave like they used to...

USSupernet
Contributor
Contributor

5/17/10

 

I’ve been investigating this for hours.  I’m seeing a change in the behavior of the PayPal “Continue Shopping” buttons.

I’ve had buttons similar to this posted on my web site (and many others) for years:

 

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

<input value="_cart" />

<input value="http://www.ussupernet.com/downpayment.html" />

<input value="QPC4MKCZB5EZE" />

<input value="Web Hosting Payment" />

<input value="20.00" />

<input value="1" />

<input value="http://www.ussupernet.com/success.html" />

<input value="http://www.ussupernet.com/sorry.html" />

<input value="USD" />

<input src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" alt="Make payments with PayPal - it's fast, free and secure!" />

<input value="1" />

</form>

 

It used to be that when a user clicked on an “add to cart” button, the PayPal shopping cart opened in a new window, and the buyer could make his payment, or click the “Continue Shopping” button to return to the site to make another purchase.  Formerly, if he chose “Continue Shopping”, the payment window would close, and the shopper would be able to resume browsing the web site where he left off.  To my knowledge, this all worked nicely in Internet Explorer 7 and the Firefox browser. 

 

Welcome, Internet Explorer 8.

 

Now it seems that, when you use these same buttons, if you click on the “Continue Shopping” button, the payment window closes, but at the same instant, a new window from the merchant web site opens.  So the user will have two versions of the same page open.  This does not appear to be an issue when one is using the FireFox browser.

Our friend here, Skier, has shared some of his efforts to address this situation.  He has suggested that we change this line:

 

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

 

To this:

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

 

And add another line:

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

 

When I made the change to the first line and added the second, the button outright fails (when using Internet Explorer 8).  One gets a PayPal “Sorry — your last action could not be completed” page.  It also creates a problem in the FireFox browser.  Instead of returning to the merchant site, it takes the user to a PayPal log-in page.

 

I would love to hear from Skier, or anyone who has gotten to the bottom of this issue.  I have dozens of web sites that have been impacted by this issue that need to be fixed.  Anyone may visit www.ussupernet.com/downpayment.php , to see this as a work-in-progress.  The $20 button has the target=”paypal” attribute, and the $350 button has the changes that Skier has suggested built into it.

 

Let me add, that when I tested on another computer that had pop-ups set to be blocked, the button set with target=”paypal” worked the way that it used to, in IE7 – perfectly.  As soon as I allowed pop-ups, the second window began appearing when I clicked on “Continue Shopping”.

 

What’s worse, when I visit the same page using Safari, once you click on any of the buttons, the page seems to stop stone dead, unless you reload it.  None of the buttons will work after you’ve already clicked on one. 

 

Have I some gross error somewhere?  Maybe I'm having a bad day.

Login to Me Too
7 REPLIES 7

luthorbob
Contributor
Contributor

Hi there,

 

I just tried the two buttons you suggested in Safari. They both worked fine, opened paypal and returned to your page when i pressed continue shopping.

The trouble I am having with mine is that when you press continue shopping it takes you to a paypal login screen displaying my user name. This happens with the code inserted and even when I create a button from scratch with no changes. Did this happen to you or do you have any ideas why?!?!?

 

 

Login to Me Too

nickanthony
Contributor
Contributor

Hi,

I am having the same problem AND "may" have a solution.

Like you, I have several web sites, which I built for clients a few years back, with many paypal buy now buttons. I tried the target="self" with the second input line of code, however it does not work on the browsers I tried it on.

I do have one buy now button that does work. It does not have target="paypal" (or target="self") in the form action. It is just this:

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

In this case however, I'm not using the paypal shopping cart, as it is just a single product, so there is no "continue shopping" button on the paypal page. It just goes to the paypal pay / login page (as it should).

However, I tried this (no target) technique on a site with multiple buy now buttons that does use the shopping cart, and it appears to solve the problem. The shopping cart does open in the same window (or tab), and when I click on the "continue shopping" button, it does return to the web site page in the same window (or tab).

There is one more consideration. If there are more than one page with buy now buttons, and you click a second button on a different page, the "continue shopping" button will return to page where the first buy now button is. The way around this is to use the second input line of code that Skier recommended, to redirect back to the page you came from.

So this is what is required - so it seems:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> (Note: No target)
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/your_page.html">

I have tried this on MAC versions of Firefox, Safari, Opera and Google Chrome. They all work. I have not tried this on a PC, or with IE. So if someone would like to explore this on PC and report back any findings that would be great.

If this is a solution, that would be good, but unfortunately we are still faced with a lot of code changes for every buy now button on a variety of sites.

It would be nice if there was a global solution, perhaps one that Paypal can implement on their end, rather than having to modify code for every buy now button out there. This must be a wide spread issue with many people's web sites, most likely with many site owners not even being aware of the problem. I only noticed it because an old client asked if I would add another product to his old paypal shopping cart.

Anyway, I am glad I found your post; and I hope the above helps us get to a solution.

Nick




Login to Me Too

DigiArts
Contributor
Contributor

I have many many pages created months and years ago with PayPal "add to cart" buttons.  I recently had a customer tell me that my shopping cart was very confusing so I checked it out.  What I found is that when an item is added to the cart a second browser window is opened.  That's OK, so far.  But when they click "Continue Shopping' they get a very confusing alert box that says the browser is trying to close the window.  So they click on OK and they get the original webpage in that second window.  I am a photographer so people will sometimes buy 10 or 20 different pictures from a wedding.  It's a mess - that's 20 different windows opened.

 

I have done some research and there is mention of this problem and a few things suggested to fix it, none of which work for me.

 

I don't know if this is a new problem with IE8 or not but it seems to me that paypal should be fixing it's code rather than having all of us merchants try to figure out how to tweak the code.

 

I suspect that lots of merchants are affected by this but they don't know it because they don't click their own "Add to Cart" buttons very often. 

Login to Me Too

DigiArts
Contributor
Contributor

For what it's worth I sent the following to Paypal Merchants Technical Services as a support issue.  I'll report back when I get a reply

-----------------------------

I have many many pages created months and years ago with PayPal "Add to cart" buttons. I recently had a customer tell me that my shopping cart was very confusing so I checked it out.

What I found is that when an item is added to the cart a second browser window is opened with the shopping cart. That's OK, so far.

But when they click "Continue Shopping' they get a very confusing alert box that says "The webpage you are viewing is trying to close the window. Do you want to close the Window?.

Click "NO" and nothing happens. If you click "YES" then the original page they were shopping at, in my website, opens in that SECOND window.

I am a photographer so people may purchase 10 or 20 photos from a wedding. That's 10 or 20 different windows open on their desktop.

The button did not use to work this way - you used to click "Continue Shopping" and you would go right back to the last page.

I have done some research and I find that this is a widespread problem. Many merchants are probably not aware of it because they do not click their own "Add to Cart" buttons. Something has changed.

Lots of merchants are trying their own rewrites of the button code but that's absurd. Paypal should provide a code that works.

Is anyone working on this?

Go to http://www.digitalartsphotography.com/weddings/gentry/friends/index.html

add something to a cart and you will see what I mean

Login to Me Too

DigiArts
Contributor
Contributor

One more " for what it's worth"

 

I opened my paypal pages in Google Chrome and they work perfectly well.  I add an item to the cart, I go to the cart, click "Continue Shopping" and I go right back to the page where I was shopping.

 

In Firefox, I add an item to the cart, I go to the cart, click "Continue Shopping" and I go back to the correct page, but only for an instant, and then this page opens up : https://www.paypal.com/us/cgi-bin/&#60;A%20href=

 

It sure seems to me that the problem here is in the way these different browsers are handling things and not in any error in the way we (merchants) are building the buttons.  This is something for Paypal to fix, not us.

Login to Me Too

DigiArts
Contributor
Contributor

Here is what Paypal says about this issue:

--------------------------------------------------------------

 

Internet Explorer 8 was recently released. However, this version has not been certified by PayPal. The term “certified” means that all areas within the PayPal.com are fully functional on the specified browser. If you already have IE 8 installed on your computer, please note that some areas within PayPal.com may not function properly. Engineers are working to certify IE 8 for use with paypal.com; until please use an alternate browser such as FireFox or IE 7.
Because the issue is with the browser itself, PayPal does not offer an exact solution to the issue.

You can try removing the target="paypal" from the form action line of code. It will currently appear as:

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

When you remove the target="paypal", it will appear as below:

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

This will cause the button to open the cart in the same window (tab), but it will remove the continue shopping button. You will then need to hard code the continue shopping button into each add to cart, and view cart button. To do so, you will need to add a line of code similar to the example below.

<input type="hidden" name="shopping_url" value="http://www.digitalartsphotography.com/weddings/gentry/friends/index.html">

 

Sincerely,
Virgil
Merchant Technical Services
PayPal, an eBay Company

--------------------------------------------------------------------------------------------------------------

I then asked if it was possilble to some other HTML code into the shopping_url, something that would just return the user to the previous page.  I got the following response:

You must add the line of code to each button and set the value to the URL were the button is located.


Sincerely,
Virgil
Merchant Technical Services
PayPal, an eBay Company

 

Login to Me Too

OPMartin
New Community Member


Hi,


Thank you for the info.  I just used PowerGREP to tweak 2117 shopping cart buttons on my client's web sites.


May the Lord bless you,

Philip


 

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.