Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › eStore – add to cart button not adding product to cart, and PayPal error
Tagged: estore
- This topic has 6 replies, 2 voices, and was last updated 4 years, 9 months ago by growthpaths.
-
AuthorPosts
-
February 19, 2020 at 12:57 pm #15011growthpathsMember
A few issues here.
First, shouldn’t there be a terms and conditions box above the add to cart button? If so, it is not showing.
Second, when I click on the add to cart button, it takes me to the next page, but reads as me having an empty cart.
Third, after I click the buy now button on the third page, I get an error from PayPal saying there seems to be a problem, please try again later.
My site is: wfg.growthpaths.net
[wp_eStore_add_to_cart id=1]
WordPress 5.3.2
WP eStore Settings v8.1.4
I’ve changed the prices of both products to $0.01. Please test it and let me know if it works for you?
Elaine
February 19, 2020 at 1:12 pm #80335wzpModeratorPlease perform this test, to determine if PHP sessions are correctly configured on your site:
https://support.tipsandtricks-hq.com/forums/topic/php-session-not-working-correctly
Also, it looks like you have encrypted paypal button only enabled. That settings is causing the paypal issue. Please watch the following video which has some explanation:
February 20, 2020 at 3:51 am #80336growthpathsMemberThank you for your response.
Ok. I’ve fixed the encrypted Paypal issue and was able to get through to paypal after hitting the buy now button. But when I went back to the website, the cart was empty.
I was able to add to cart using an add to cart LINK, browsed around the site, and the cart still contained the cart item. So regarding PHP, it has nothing to do with the ability of the site to maintain a memory of the items in the shopping cart.
That said, the add-to-cart and buy-now BUTTONS don’t seem to be adding items to the cart.
I’d use the links in place of the buttons, but they do not do the job of forwarding the site to the correct page after the item is added to the cart.
Any assistance with this would be appreciated. Thanks.
February 20, 2020 at 11:08 pm #80337growthpathsMemberHelp, waiting for an answer…
The BUY NOW button seems to work, but the add to cart button is not. When I click the add to cart button, the cart remains empty. Again, an add-to-cart LINK works, but the BUTTON does not.
Follow the process on the first page, wfg.growthpaths.net and you will see on the second page that the cart remains empty. If you follow through the third page for the videos and click on the buy now button, it goes to paypal, as it should, and wants to charge $0.01. But if you have made it that far, it SHOULD be charging $0.02, but again, the first button did not work.
February 20, 2020 at 11:19 pm #80338wzpModeratorI noticed that you are using spaces in your URL:
wfg.growthpaths.net/buy button
Please rename your directories and pages, so that they do not contain space characters; as space characters violate RFC 1738.
February 21, 2020 at 12:37 am #80339growthpathsMemberOkay, fixed. I tried getting my web host to add the snippet of PHP to their php.ini page for me… this is the response I got:
==
Hello Elaine,
We see that session.save_path is already set for your site. Please note that we do not allow the custom PHP changes, so we cannot change it to the provided value.
==
Could this be why my add-to-cart button is not adding my item to my cart? The buy-now button on page 3 works… and an add-to-cart link works, but does not forward to the proper page after adding to cart.
What can I do to fix this?
Elaine
February 21, 2020 at 1:09 am #80340growthpathsMemberHey I got it fixed. I had to add a checkout page to my settings. yay!!!
-
AuthorPosts
- You must be logged in to reply to this topic.