InMotion Hosting Support Center

WordPress has ecommerce plugins that allow you to use your WordPress as a shopping cart as well. Occasionally, the ecommerce plugin will not save to the Shopping cart products. When visiting the shopping cart after products are added, the site still says the cart is empty. This is caused by the Sessions save path (session.save_path in the php.ini) not being set to the correct directory.

Known issues with ecommerce plugins

This is a common issue with WordPress ecommerce plugins. The following plugins are known to have this issue:

  1. WP Ecommerce
  2. Woo Commerce

Below will show you the steps to fix the sessions path in your cPanel File Manager.

Fixing the sessions problem

This sessions save path is a relatively easy fix. This can be done in the cPanel File Manager. To get the shopping cart to allow the products to add to the cart, you will need to fix the sessions path to the folder location on the server where the sessions ar stored.

  1. Login into your cPanel.
  2. Go to the File Manager. Select the Web Root public_html directory and click Go.
  3. Find your php.ini and edit it.
  4. php.ini view of sessions pathYou will need to change the "Sessions path" in the php.ini for the WordPress Shopping cart.

    Update the php.ini save path sits similar to the following.

    session.save_path = /tmp

    Change the path to the following:

    session.save_path = home/username/session foldername

    Note! You will need to create a folder in your "Home" directory. You will need to change the name from "foldername" to the name you want the folder to be and the" username" to your cPanel username.

    The folder must be writeable with 755 permissions.

    Save the changes to your php.ini.

    Note! You may need to make the php.ini recursive in the .htaccess to see the changes take effect.


  5. Test your ecommerce shopping cart again. You should see the cart save the products in the cart now.
Continued Education in Course WordPress
You are viewing Section 30: 302: Fixing the Save Sessions Path for WordPress eCommerce plugins
Section 29: 326: How to change your site URL in your WordPress admin dashboard
Section 31: 319: How to delete a WordPress theme

Support Center Login

Social Media Login

   
Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-09-17 2:34 am

Hello guys

Currentally i am using woocommerce pluging, there i am getting problem.

how to identify user logged . mean how did get session.

i am doing when user login then "Login Button hide" and "Logout button showing".

Staff
17,917 Points
2014-09-17 9:56 am
Hello Rajkaran,

Thank you for contacting us today. We are happy to help, but are not sure what you are asking.

Can you provide more details on what you are trying to accomplish?

If you have any further details, feel free to post them below.

Thank you,
John-Paul
n/a Points
2015-07-10 11:20 am

Hi good day,

I'm not sure if this is the same problem, however, my issue is Woocommerce related... specifically, I'm unable to add products to the cart more than once.

What I mean is, after clearing the cache in a browser, I'm able to add a product to the cart and then view that product... great! 

However, if I remove that product from the cart, return to the shop and attempt to add that same product, or another to the cart, I'm not allowed to.

There's no error message. But the notification "XYZ product was added to your cart" that usually appears above the product page, does not appear the second time around.

Is there any way to fix this? I've done numerous things - increased memory limit in Wordpress, resetting Woocommerce options under System Status, excluding my cart, checkout and my account pages in W3 Total Cache - and nothing has worked.

I'm in desperate need of a fix here.

Thanks. Yuri 

Staff
17,917 Points
2015-07-13 12:11 pm
Hello Yuri,

Thank you for contacting us. I first recommend turning WordPress debugging on. With debugging turned on, it is much easier to locate any errors within your WordPress site as well as any plugins and themes that may be causing errors.

If your problems persist, please see our Common WordPress Troubleshooting Techniques. It provides additional testing steps, to help you narrow down the cause of the problem.

Thank you,
John-Paul

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

4 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!