"Add to Cart" button malfunctions & redirects to another website page, but works on Second Click!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We have had our paypal buttons working reasonably well on our Google Sites Website, however just recently it came to our attention that one of our "Add to Cart" buttons redirects to a related page on our website, causing the buyer to think it's not working. However, upon clicking this paypal button again, it functions well and properly directs to the Add to Cart page. Most of the time it works just fine for us, except when opening up the website anew.
Because of this odd button behavior, I am not sure if it may be happening with the other many other paypal add to cart buttons on our website.
I have recreated this paypal button and repasted the code into the HTML box on the page, however, the issue still remains.
Our website: www.greenhillenvirotechnologies.com/
The page with the malfunctioning "Add To Cart" button (for the "Okapi 2.i System Complete"): http://www.greenhillenvirotechnologies.com/buy-now/purchase
-Concerned we have lost business over this bug.
Any help would be much appreciated!
Thank you!
-Meredith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PayPal's item button code is basically an HTML Form. It's best when you create new code to first test it using a blank web page. If the code works, then you're good to move on to your actual web page. If the code fails there, then the issue is associated with your web page, site host or HTML Editor.
I tested the your item button on your page and it worked however, that's not to say something is still not correct. My suggestion is to use the "hosted" version of the code, not the "encrypted" version you're using now. Encrypted code can be strange at times and some HTML Editors have been know not to play well with encrypted code. The "hosted" version is safe if that's your concern and it's a bit easier to troubleshoot than "encrypted" code. Also, what web browser or browsers have you used to test your code? That can also make a difference.
Try the "hosted" version of code, note you will have recreate it again as "encrypted" code is not stored on the PayPal Servers but "hosted" is. After you create the code, test it with a blank web page, if it works, them move on to your web page. Below is an example of a blank web page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Test</title> <!-- START META TAG SECTION --> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta http-equiv="Content-Language" content="en"> <!-- END META TAG SECTION --> </head> <body> <!-- INSERT TEST CODE HERE --> <!-- END TEST CODE SECTION --> </body> </html>
Copy and paste your code, save it locally to your computer with a name like test.html or test.htm, then open the code with your web browser.
Last tip:
After you have made your changes to your item button code, be sure to delete your web browser's cookies, temp files and history before testing the changes. This ensures a clean start. Delete the browser's cookies, temp files and history, then close the browser, reopen it and then test your code.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- multiorder shipping not working for weeks now! so very frustrated with paypal. in About Business (Archive)
- Stuck in Redirect Loop when sending Payment in About Payments (Archive)
- How to customize PayPal payment page header image (for new PayPal UI)? in About Settings (Archive)
- Auto redirect not working in mobile browsers in About Payments (Archive)
- www.paypal.com redirected you too many times. in About Business (Archive)