Link to home
Start Free TrialLog in
Avatar of Jan Mishkin
Jan MishkinFlag for United States of America

asked on

The shopping page on our website only works with 6 PayPal "Add to Cart" buttons; if we add more buttons the new buttons do not work.

We have a page on our website that offers products for sale.  Some of the products are linked to an outside website to purchase and some have a PayPal "Add to Cart" button.  The first item (Thrip Cloth) on the page was the last one added to the page and when you click on the "Add to Cart" button the browser says it is waiting for the main website page and eventually, it times out with a "Gateway timeout" error and never gets added to the cart.
There are 7 of these buttons on the page, all the other 6 buttons work fine.  If I take out any of the other buttons and try the first item on the page (Thrip Cloth) after that, then it works beautifully.  My conclusion is that we are limited to 6 buttons on the page.  PayPal says there is no limit.  They suggested calling our hosting company; they said there is no limit imposed by them and it is out of their scope.  
This is a Linux site using PHP.
The site is http://crcweb.org/books.php - this file has 7 buttons on it.
The site page that works is http://crcweb.org/books%202019-09-10D.php
Does anyone have any ideas on what else I can look at to troubleshoot this issue?
Any help would be most appreciated!
Jan
books.php
Avatar of Robert Granlund
Robert Granlund
Flag of United States of America image

I added a bunch of things to the paypal cart.  It hung up when I tried to add: Thrip Cloth
Make sure that specific product is setup correctly in PayPal.  It seems that maybe the code is wrong or something is not right  from the setup because all of the other buttons work fine.
Avatar of Jan Mishkin

ASKER

Yes, all the other buttons work fine until I introduce a 7th button.  If I take out one of the "Add to Cart" buttons and leave only 6 buttons then all the buttons will work.  As soon as there is a 7th button on the page it breaks the 7th button.
The code works when there are 6 buttons but does not work when there are 7 buttons.
If you take out one of the buttons and leave Thrip Cloth does Thrip Cloth then work?
Avatar of David Favor
You may be hitting the recent PayPal change.

PayPal only allows transaction flow from TLSv1.2 + TLSv1.3 protocol sites now, so HTTP (non-HTTPS) sites are blocked.

What may be occurring is you just think the old buttons are working... because they were working up until recently... now both old + new buttons are failing.

First upgrade your site to HTTPS TLSv1.2 or above, then proceed.

This may not be the root of your current problem of site design. It will the root of zero money flow.
If you hit f12 while the page runs, you can see there is an error for, "Bartender API access denied". Also the button for, "Chicago Rabbis: Visionaries, Pioneers, and Leaders" is not functioning properly.  Try going to paypal and regenerate the button and make sure you copy and paste the html correctly back to the site.
Robert, Yes if I remove another button the Thrip Cloth button then works.
David, how can I see which version of TSL my site is running?
Scott -
Below is what I get when I click on the Add to Cart button for the Thrip Cloth and then press F12 while it is trying to figure out what to do.  See attached screenshot.
PicPick-1233.png
See attached.  It is a copy of the Shopping cart - all but Thrip Clother went into the Cart using Internet Explorer
Shopping-cart---all-but-Thrip-Clothe.png
If I use Internet Explorer and hover over the buttons I get the same message for all except the Thrip Cloth.  Please see attached.
Cart-IE-hover-messages.png
Also, when I use IE the Chicago Rabbis book does load properly but not in Google anymore.
Okay, so I cleaned up the code (meaning alignment moe than anything else) so I could read it better.  Somehow it seems now to be working.
I am going to ask our web programmer to
1. clean up the margin problem (which I can't do in code view)
2. See what version of TLS our server is running and upgrade if it is not 1.2 at least

Scott, I had already regenerated a new button before today and had the same problem. Also, thank you for the suggestion of hitting F12 while it was hanging (did you see anything that looked out-of-place.
David, this site is only going to be up until October (they say) so getting an SSL cert for a site that doesn't collect information isn't worth the time it takes but will be on our new website and we'll see then how things work.
The programmer is coming in tomorrow so I am going to leave this open until I talk to him.  Is there a way to give more than 1 person credit for contributing?
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Scott -
Many thanks for taking the time to follow-up.
The programmer had, in the past, checked out the page (he authored it) and said he couldn't see what was wrong.
I did look at my PayPayl account and had recreated the button and then compared it to the first button and the code was exactly the same except for the 'value="KLAXGS3JAN2NQ" which obviously was different.

Your comment "The only errors on YOUR site I can see in the console is a bissing gif for crweb.org and access denied for bartender api. There are other performance tools you can view on your own." is completely foreign to me so I will research what a "bissing gif" is and what the "bartender.api" does.  Thanks! :-)

Yes, the cart is very primitive as we started with just a couple of books and have grown it. Clicking the Add to Cart button takes you to the shopping cart so you can see your item was entered but then to go back to the "store" you have to click on "continue shopping".  So that's not so bad.  Then there is no count of items purchased on the "store" page.  The most annoying is that there is no way to go from the store to the cart without adding something to the cart.  Do you know of a method to create a link to the cart that can be placed on the store page?
Maybe this should be another ticket?
Jan
"bissing gif"  

I think that must have been, "missing gif" :)