Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum » WP eStore Troubleshooting

Empty Shopping Cart Error When Checking Out with PayPal

(14 posts) (7 voices)
  • Started 1 year ago by fudgenaround
  • Latest reply from admin
  • Possible Solutions (Related Topics):
    1. Your shopping cart is empty" error while checking out through PayPal
    2. Getting an error from paypal that the shopping cart is empty upon checkout
    3. Shopping Cart PHP Sessions error
    4. wp-eStore-auto-addtocart links to wordpress-simple-paypal-shopping-cart
    5. problem with the shopping cart paypal button and affiliate plugin

Tags:

  • back
  • button
  • cart
  • checkout
  • clears
  • empty cart
  • PayPal
  • PHP Session
  • return
12Next »
  1. fudgenaround
    Member

    Something weird is happening. with certain items during the checkout the cart is lost and I get the following message:

    Either your shopping cart is empty or the PHP Session on your server is not working correctly. Please check this article

    This happens when I add certain products to the cart only. I was working on the cart yesterday and it was fine and today I am getting this error. I am using FireFox 3.6.12. When I try to place an order with another browser such as Chrome or IE it works fine.

    Here is the website: http://fudgenaround.com/index.php/order-fudge/

    If I add Chocolate Brick and check out it is fine but if I add Mint Brick and checkout it thinks my shopping cart is empty.

    Any clue? I know the PHP Session is working cuz I host dozens of websites that use it on the same server. I'm running IIS6 on Win2k3 Server. I'm thinking there is something funky going on with the browser but not sure why it happens only with certain products

    Posted 1 year ago #
  2. amin007
    Key Master

    My apologies for missing this post.

    Lets try this tweak first to make sure that the issue is related to what I think it is:

    Open the "eStore_payment_submission.php" file and search for the following line of code:

    reset_eStore_cart();

    When you find it just delete it (there will be a few occurrences so delete them all).

    Now do a checkout and let me know how it behaves. yes the cart will not get cleared after the purchase but I have a solution for that.

    Posted 1 year ago #
  3. fudgenaround
    Member

    I commented out all the calls to reset_eStore_cart() on eStore_payment_submission.php but the issue is still happening in FireFox. I didn't delete the lines incase we had to put them back in there but they are still currently disabled on the website. I commented out the check function that checks if session is working or if the cart is empty and when it went to paypal the shopping cart was actually empty.

    Any other ideas?

    Posted 1 year ago #
  4. fudgenaround
    Member

    okay, something weird is happening. I logged out as admin and then tried the shopping cart and now I am able to check out. I went through and removed all the comments to the reset cart function and tried it again and I am able to check out. I also logged back in as admin and tried the cart again and no problems now.

    not sure how I got stuck but it seems to be working now on all browsers and FireFox too.

    Posted 1 year ago #
  5. amin007
    Key Master

    I can't really explain it just yet as I haven't been able to identify a pattern so please keep an eye out to see what changes in the server causes this weird behavior.

    Posted 1 year ago #
  6. fudgenaround
    Member

    I almost think its a browser/cookie issue cuz it went away as soon as I logged out as admin and on the other browsers Chrome and IE i never logged in as admin

    Posted 1 year ago #
  7. fudgenaround
    Member

    okay... its back! When using FF, I added some items to the cart and when I went to go check out the cart was empty. I thought it was the admin logged in thing again and logged out and cleared out the cart. added new items and when i clicked on check out was getting the empty cart message again.

    any ideas on how to track this bug down?

    Posted 1 year ago #
  8. wpCommerce
    Moderator

    Ok, I just jumped on your order page - http://fudgenaround.com/index.php/order-fudge/

    After adding a product to the cart I clicked on checkout and it was trying to submit all the product information from - http://www.fudgenaround.com/wp-content/plugins/wp-cart-for-digital-products/eStore_payment_submission.php

    You can see that there is a difference between the two URL. One has www and another doesn't have.

    we added product from the URL with no WWW but during checkout eStore is trying submit data from the 2nd URL (where no product has been added resulting an empty cart error). I guess you are using www version for WP URL and no www for the site URL. Please make sure the WP URL and the site URL are same in your General settings of WordPress.

    The cause and effect is explained in detail here:
    http://www.tipsandtricks-hq.com/forum/topic/incorrect-server-setup-related-to-url-rewriting-cause-and-effect

    Posted 1 year ago #
  9. fudgenaround
    Member

    that was it! damn URLs. I had the entry for the products page as "/index.php/order-fudge/" and now I updated it to "http://www.fudgenaround.com/index.php/order-fudge/" to make sure the www is in the URL now.

    Thank you so much for helping me. it was drivin me nutz and I couldn't figure it out.

    Posted 1 year ago #
  10. teamilluminati
    Member

    I just finished reading this earlier post:

    "Lets try this tweak first to make sure that the issue is related to what I think it is:

    Open the "eStore_payment_submission.php" file and search for the following line of code:

    reset_eStore_cart();

    When you find it just delete it (there will be a few occurrences so delete them all).

    Now do a checkout and let me know how it behaves. yes the cart will not get cleared after the purchase but I have a solution for that."

    Amin, can you please describe what that solution is?

    thanks,
    Ernest

    Posted 1 year ago #

RSS feed for this topic

12Next »

Reply »

You must log in to post.

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