Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password?

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum » WP eStore F.A.Q/Instructions

"Your shopping cart is empty" Upon Checkout

(8 posts) (4 voices)
  • Started 1 year ago by wpCommerce
  • Latest reply from amin007
  • Related Topics:
    1. Shopping Cart on WP Page doesn't appear sometimes
    2. Your shopping cart is empty" error while checking out through PayPal
    3. Getting an error from paypal that the shopping cart is empty upon checkout
    4. Adjust text formatting for "Shopping Cart is Empty" / "Items in Your Cart"
    5. wp-eStore-auto-addtocart links to wordpress-simple-paypal-shopping-cart

Tags:

  • shopping cart empty
  1. wpCommerce
    Moderator

    If you are getting the "Your shopping cart is empty" error while checking out through PayPal then it could be for one of the following reasons:

    1. The PHP Session on your server is not working correctly.

    2. Your site URL and WordPress blog URL are not specified the same in the General settings of WordPress.

    Now let's have a quick explanation of the two issues and how to identify them:

    1. PHP Session Issue

    If you are having a PHP session issue on your site then the plugin won't be able to keep the item information in the session variable (even if you see the items are being added). So anyone clicking on the payment button and checking out through PayPal will get the error as the shopping cart could not submit any item information to the gateway.

    How to identify if you are having this issue?

    a) Add a product to the shopping cart.
    b) Check to make sure that the item appears in the cart.
    c) Now, navigate away from this page and go to another post or page.
    d) Navigate back to the page where you have the shopping cart displaying the items in your cart.
    e) Can you still see the items in the shopping cart?

    If you can't then it means the item information got lost which indicates that you may have a PHP session not working related issue. The shopping cart stores the item information in the PHP session so if your session is working correctly then the items shouldn't have disappeared.

    How to Solve this issue?

    Simply contacting your hosting provider should be good enough to get your PHP session issue fixed. Here is another post that might be of some help with this:

    http://www.tipsandtricks-hq.com/forum/topic/php-session-not-working-correctly

    You can easily point out this issue by navigating away from the page (after adding a product in the cart) and again coming back to the same page. If the item is still not in the cart means you have the PHP session issue. You need to contact you hosting provider to fix this.

    2. Incorrect server setup

    Say, you have specified the following in the "General Settings" of your WordPress dashboard:

    Site URL: http://www.example.com
    WordPress blog URL: http://example.com

    Notice that one is missing the "www"? That's the problem. Both of them should use the same value. So you can either use "http://example.com" in both fields or use "http://www.example.com" in both fields (Just don't mix them).

    The following URL will explain this in full details as to why this is an issue:

    http://www.tipsandtricks-hq.com/forum/topic/incorrect-server-setup-related-to-url-rewriting-cause-and-effect

    Posted 1 year ago #
  2. vfontjr
    Member

    I ran into this issue with WordPress 3.02 on one of my multi-site domains. It took a while to figure out, but I fixed it through the Super Admin menu by editing the site details. I wrote about how to fix it in this blog post: How to Set Up the eStore Plugin in WordPress 3.x Multi-site: http://wp.me/p1cwOP-ae.

    I hope it's alright to post the link to the blog article. If not, please delte the post. I won't be offended. I just want to help others who are having the same problem.

    Posted 1 year ago #
  3. amin007
    Key Master

    Thank you for sharing this info. It will definitely help others who may face this in the future.

    Posted 1 year ago #
  4. kairos
    Member

    I'm getting the "Either your shopping cart is empty or the PHP Session on your server is not working correctly." error when I click the Check Out With PayPal button.

    I don't think it's PHP related because the cart seems to be keeping the products when they are added to it, it's just not going through to Paypal. Therefore, I wondering if it's a server setup issue.

    My wordpress general settings are:
    Wordpress Address (URL) http://www.handwriteforcash.com
    Site Address (URL) http://www.handwriteforcash.com

    Also, I have a single hosting account with multiple domains and each site has its own wordpress installation. I have the handwriteforcash.com domain pointing to the kairosventuregroup.com/handwriteforcash/ folder where the wordpress files for this site are stored. kairosventuregroup.com is the root.

    Do you see a problem?

    Posted 11 months ago #
  5. amin007
    Key Master

    Your site setup is fine. PHP Session values are somehow getting lost when it goes to the payment submission page. Since you site is in testing state can you disable all plugins on the site except eStore and let me know if it makes a difference when you try to checkout? Sometimes a plugin can start a new Session without checking for the existing one which can empty out the session.

    Posted 11 months ago #
  6. kairos
    Member

    I disabled every plugin but estore - same error message.

    Previously, I was loosing the items in the cart when I would navigate to another page. I called my hosting provider (fat cow) and they confirmed the session code but noticed I was missing a /tmp folder to store values, so they added the following folder
    root/cgi-bin/tmp

    However, when I look in this folder it says "no files". Should there be files in it? Could it be a permission problem?

    Posted 11 months ago #
  7. amin007
    Key Master

    Sent you an email to get site access so I can investigate it.

    Posted 11 months ago #
  8. amin007
    Key Master

    Turned out to be a PHP session issue on the server.

    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ Forum is proudly powered by bbPress

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin