Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Shopping Cart is showing empty when it's really not
- This topic has 13 replies, 5 voices, and was last updated 7 years ago by admin.
-
AuthorPosts
-
August 10, 2012 at 10:15 pm #7137jhdelmarMember
I have a WordPress site hosted by Bluehost. Site URL = http://www.mycookingcoach.com
I installed WP eStore using Paypal for payment gateway. WordPress version 3.4.1 ; WP eStore version 6.8.5
Shopping cart page URL is http://www.mycookingcoach.com/begin-cooking/.
I’m experiencing the following problem:
I click on “add to cart” and the quantity in the cart becomes “1”. If I move to another page on the site and then return to the shopping cart page, now “cart is empty.” When I click on “add to cart,” quantity in cart becomes “2”. The same thing happens if I completely exit the website and return. In other words, the previous quantity added to the cart is retained, although the cart is shown as empty.
I enabled the “Save and Retrieve Cart” feature to see if that would make a difference. Now I get a “cart ID number,” but when I leave the page and come back, the “cart is empty” again. If I click on “add to cart,” the quantity that had been previously added is incremented by 1.
I went to your support forum, saw numerous posts regarding the “Your shopping cart is empty” problem and your suggestions regarding PHP session setting.
I contacted my host provider to verify that server session settings were correct. Technical support assured me that settings were correct. Server is using PHP version 5.2, and php.ini does include the line: “session.save_path = /tmp” (I checked and saw it there myself.)
What do I need to do to fix this problem?
August 10, 2012 at 10:36 pm #48278mariscaMemberHi there, i have the same problem. For a time it worked fine, but today I wanted to check it again and i got the same message
I have version 6.7.0 and the same trouble with the checkout:
“Your shopping cart is empty. Please add an item to your cart. You can load the checkout page and make sure the shopping cart is not empty.
Go to Products Page
If you are the admin of this site and you are certain that the shopping cart is not empty then the PHP Session on your server is not working correctly. Please check this article”
but i don’t know anything of php. Can you help me with upgrading to 6.8.5 (the newest version?) and maybe you can change in my directory because i am scared to lose all my products i sell.
my website is: http://www.veryamazingdeals.com
marisca
August 11, 2012 at 12:57 am #48279adminKeymaster@marisca, You shouldn’t need to know anything about PHP. Your hosting provider is suppose to give you a hosting package where the PHP session is working 100%. When PHP session works correctly, the shopping cart doesn’t get reset like the way it is behaving on your site.
You mentioned that it used to work but has recently stopped working. Which means you most likely added a new plugin that is messing up the PHP session or something on your server has changed (your hosting provider may have upgraded software on the server). Have you added any new plugin recently?
Tell your hosting provider the following and they will be able to investigate and fix the PHP session issue:
PHP session on my site is not working. Everything I load a WordPress page, all PHP session data gets erased.
August 11, 2012 at 12:58 am #48280adminKeymaster@jhdelmar, The issue on your server seem to be caused by another plugin. Please do the following test:
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
August 11, 2012 at 11:23 am #48281mariscaMemberHello Admin, i sent a mail to my hosting provider because it is true that i upgraded my hostingaccount for all my products. I had also added a few plugins but I deactivated it. Also i did add cloudflare but when i had to change DNS i got scared off and deleted my website from cloudflare. i didn’t change DNS. I read something about ini.php? where to find THAT ?
and is there something changed in the version (6.7.0. and 6.8.5.) can you change that?
or where can i upload it?
greeetings Marisca
August 12, 2012 at 9:13 pm #48282jhdelmarMemberThank you Admin. I determined that there is a conflict between WP eStore plug-in and Download Manager plug-in. I installed Download Manager so that I could offer a password-controlled “Free Download.” When I deactivated Download Manager, the add-to-cart feature in WP eStore worked perfectly.
Do you have any suggestions on resolving the conflict between these two plugins?
August 13, 2012 at 1:43 pm #48283mariscaMemberHello Admin,
the hostingcompany said that i had to add a few lines (<FilesMatch “.php$”>
AddHandler x-httpd-php53 .php </FilesMatch>
into the htaccess file so i could upgrade it to php5.3. i did and i got the http 500 instead of my site. They told me to add rights (i had in every map 777 rights) but they say change maps into 755 and files in 644. so i did. i got my website back on my pc but now when i put something into my cart, nothing is gonna happen.
can you help me?
best regards, Marisca
August 13, 2012 at 10:55 pm #48284adminKeymaster@marisca, Your PHP session is still not working. This is an issue on your hosting server not in the plugin. We won’t be able to help you unless your hosting provider gives you a properly working server unfortunately. Who is your hosting provider?
August 14, 2012 at 6:27 pm #48285mariscaMemberhi Admin,
my hostingprovider is Servio.nl , normally a very good hostingprovider. I had contact with them (also at their chat, and they will look at it).
Last month or so I upgraded my hosting to have more diskspace. Then it goes wrong I found out this week.
About what i wrote above, I put everything like it was, because jhdelmar’Server is also using PHP version 5.2.
he said also: and php.ini does include the line: “session.save_path = /tmp”
where can I find it or where to put it (in which map?)
and what kind do i need 777?
best regards, Marisca
August 16, 2012 at 10:15 pm #48286mariscaMemberi solved my problem. is wasn’t a server problem.
it was another plugin ‘Track that stat’. A very nice plugin but unfortunately not compatible met e-store plugin.
Best regards,
Marisca
August 17, 2012 at 5:10 am #48287adminKeymasterThere are a few plugins out there is not quite coded correctly and messes up the PHP session by not checking if a session is set before starting a new one. I have seen a few plugins that does this which makes it to where the PHP session on the site doesn’t work as expected anymore. Other plugins that require PHP session to work correctly can’t work anymore when this happens. You will see a few of these plugins listed here:
November 15, 2017 at 9:32 pm #48288JFWieneckeMemberShopping cart not showing same amount when using the same short code on different pages. The donate now buttons work going directly to paypal. That is not the case when going to paypal from shopping cart. The page displays unreadable characters.
November 15, 2017 at 9:56 pm #48289wzpModeratorShopping cart not showing same amount when using the same short code on different pages.
Please do this test, to make sure PHP sessions are working correctly on your site:
https://support.tipsandtricks-hq.com/forums/topic/php-session-not-working-correctly
November 15, 2017 at 10:30 pm #48290adminKeymasterAre you using any caching plugins?
-
AuthorPosts
- You must be logged in to reply to this topic.