WP Shopping Cart Troubleshooting

Can’t Remove an Item from the Shopping Cart

Make sure you haven’t included special characters like apostrophe (‘) in your product name.

The Price Shows up as $0.00 in the Shopping Cart

Make sure you have entered the Price to two decimal places and didn’t put any symbols or characters. eg. 10.00 or 6.70 or 1999.95 etc (Do not put currency symbol in the price field)

NextGen Gallery doesn’t show the “Add to Cart” buttons correctly

  • Make sure the wp eStore template file is in the “view” directory of NextGen Gallery.
  • You using something similar to the following to display the gallery:

left_bracket2nggallery id=1 template=wp-eStore]

Variation Control Not Working

Please make sure your theme’s “footer.php” file has a call to the wp_footer() function of WordPress or it won’t add the javascripts in the footer. Many themes are not designed according to WordPress standard and causes problems. Simply add the following line in your “footer.php” file to solve this:

<?php wp_footer(); ?>

Add to Cart Button Not Showing in IE

This usually happens when the theme has some CSS issue. If you do the theme testing explained on this page then it will reveal the issue:

The Workaround

If you don’t want to change your theme then open the “wp_shopping_cart.php” file and do the following.

1) Search for the following piece of code string:

<object>

When you find it just delete this string. There will be a few occurrences so do the same for all of them.

2) Search for the following piece of code string:

</object>

When you find it just delete this string. There will be a few occurrences so do the same for all of them.

Save and upload this file and it should fix that issue.

Note: We now provide technical support for our premium plugins via our customer only support forum

Comments

  1. Mr Beta says:

    ok I figured out my problem with getting 404 errors, so if anyone else has the issue maybe this will help you. I created a custom post type called “product” that I was listing my products under, however, in the shopping cart code, when you go to delete an item from the shopping cart, it uses name=”product” as a parameter to send a hidden field. I simply changed my custom post type name to “products” with an “s” so it is different than the cart code. Works like a charm now.

  2. Sheila says:

    Resolved IE8 issue: http://themeforest.net/item/traject-wordpress-portfolio-and-business-theme/discussion/116671?page=19 says, “It looks like WordPress is formatting the code (adding paragraph tags where they don’t belong) which leads me to believe this is a shortcode you are using to add the “Add to Cart” buttons. If that is the case, it’s a really easy fix.

    The theme implements some special functions to prevent WordPress from styling shortcodes that contain code, this occasionally causes conflicts with other shortcodes when nested or they don’t take similar measures. To fix it, just wrap your shortcode in the “[raw][/raw]” shortcode.

    For example, if the shortcode for your buttons is “[add_to_cart]” you would enter it as:

    [raw]
    [add_to_cart]
    [/raw]

    And this worked for me! Thanks again for the great plugin — going to rate it now!

  3. Ivy says:

    Hi Matt, Yes there has been a work around added. You can read more about this here:

    http://www.tipsandtricks-hq.com/forum/topic/paypal-enhanced-checkout-issue#post-7373

    toward the bottom of my (ivy) post.

  4. Matt says:

    Hi,

    Ivy said on November 9th, 2010 at 6:16 am

    “We have added a workaround to the eStore plugin to address the cart clearing issue. We are still working on a fix for the Simple Shopping Cart at this time.”

    Any news on the fix? I’m still having the same problem – when customers return from PayPal, the cart is still full.

  5. Ben says:

    @Hank, also having the same issue as you! Did you host resolve this? Please Help! Thank you!

  6. admin says:

    @Hank, PHP session on your site doesn’t seem to be working correctly. Only your host can fix the PHP session problem.

  7. Hank Fischer says:

    Getting this message at the top of every page on my site. My provider can’t seem too help. Any clue as to how to fix?

    Warning: session_start() [function.session-start]: open(/var/chroot/home/content/67/6901067/tmp/sess_g4ook9lrhsnlj4cu62d8gr6037, O_RDWR) failed: No such file or directory (2) in /home/content/67/6901067/html/ricci/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 23

  8. Ivy says:

    Hi Glen,

    This sounds like a PHP session issue. You will need to contact your hosting provider to fix this issue. They will need to check that the PHP session is turned on and configured properly. This should only take them a few minutes to do.

    Let us know how this goes.

  9. Glen says:

    Continuing to shop and adding more items to my cart removes older items. Only one item stays in the cart. Am I doing something wrong? Thx.

  10. Nancy says:

    I figured it out! I thought there was only 1 page that had code, but there were 2. On the second on, I had the letter O instead of a zero in the price.

  11. Nancy says:

    Hi there, I have searched and searched for some help with this.

    I have 2 different products on one page. One of them works ($60 one), and goes to PayPal. The other one ($150) gives me an “The link you have used to enter the PayPal system contains an incorrectly formatted item amount.”

    Now, if seems that most of the time it is a comma instead of a period, or something like that. But both prices are the same, and I see NO mistakes.

    This is what I have:

    Soul Profile and Realignment Reading-$150

    [wp_cart:SoulProfileReading:price:150.00:end]

    [show_wp_shopping_cart]

    Property Realignment- $60

    [wp_cart:PropertyClearing:price:60.00:end]

    [show_wp_shopping_cart]

    HELP!! I cannot figure out why it won’t work! Thanks so much.

  12. oner says:

    Isolved the problem
    $products variable is used in the theme for its own purpose and I replaced them with $wp_shopping_cart_products and my problem resolved

  13. oner says:

    Hi This plug in is very useful and easy to use. but I have problem with it after I change my theme and I can not solve the problem. The them I use know RT-Theme 11 1.0 from theme forest
    the problem is when clicking the add to cart button the theme responses its 404 not found page. And when I go back to the page and refresh it I see the product I desire is added to the cart.
    the other problem is that when I try to remove the product from cart I found myself at the home page of my site.

    Do you have any Idea

  14. Ivy says:

    Hi Andy, PayPal’s new enhanced checkout has a few issues. One of the main issues is that the Post payment data is not getting posted back to the “Return Page”. You can read more about this on PayPal’s Developer site here:

    https://www.x.com/thread/44960

    If any of your customer gets the enhanced checkout version of PayPal then they will see the following two issues.

    - The shopping cart will not clear when they land on the “Thank You” page.
    - If you are displaying the download links on the “Thank You” page then the links won’t be there.

    The cart not clearing when the customer returns to the site. We have added a workaround to the eStore plugin to address the cart clearing issue. We are still working on a fix for the Simple Shopping Cart at this time.

  15. Andy says:

    I am loving your plugin – thanks. I just set it up today and it is working great. Just one question – on my first test transaction, when I am returned to my site after the paypal transaction all the contents of the basket are still there. Should the basket be empty again after the checkout is complete?

    I can see someone else had this issue but I can’t see the solution?

    Thanks, Andy

  16. Ivy says:

    Hi Moose,

    This sounds like a PHP session issue. You will need to contact your hosting provider to fix this issue. They will need to check that the PHP session is turned on and configured properly. This should only take them a few minutes to do.

    Let us know how this goes.

  17. Moose says:

    I’ve installed the plugin all good, but when I go to pay and click on “pay with paypal button”, I get a response from a paypal page saying that “Your the shopping cart is empty”

  18. Ivy says:

    Hi Claudia, In the Simple Shopping Cart Settings there is a setting called “Shopping Cart title” Just change this to whatever you want it to say.

  19. Claudia says:

    Hello!
    I was wondering if it possible to replace the title “Your cart” (not in the title widget, but the text just under the cart icon) with solely an image.

    Also, I have an issue with big font showing in the cart content only in the product pages, not on the index (here http://www.pianetaproibito.net).

    Thanks for any help.

  20. Ivy says:

    Hi Bee, In the setting menu of the plugin you can specify a custom button image. All you need to do is put the URL of this image here “Add to Cart button text or Image”.

  21. Bee says:

    Hi,

    I just installed the shopping cart and am wondering how to use the buy button I designed rather than the button called ‘add to cart”? Is that a possibility?

    Thanks,

    Bee

  22. Ivy says:

    Hi Raymond, Can you please send me a link where you are having this issue so I can take a look at what is happening?

  23. Raymond says:

    Just added the shopping cart plugin. I have a quirky problem. If I add two products to a page that are different prices, the shopping cart displays the amount of the first product selected, but not the second.

    E.g. Price of item 1 -$12.00, Price of item 2-$5.00. If I select item 1, and then item 2, the total owed is 24.00, not 17.00. If I start with item 2, the total owed is 10.00

  24. Kat says:

    Thank you so much, worked like a charm

  25. Ivy says:

    Hi Kat, The following forum post will explain how to fix this issue:

    http://www.tipsandtricks-hq.com/forum/topic/images-appear-too-bigsmallstretched-on-thesis-theme#post-3193

  26. Kat says:

    katrinauch.com/fitr

    I am having a problem with the shopping cart, it was giving me a supersized “add to cart” button and a huge shopping cart icon, which looks awful. I was able to fix it partially, but changing this code to 20% instead of the 45% that it came in as:

    .custom .format_text input, #commentform input, #commentform textarea {
    width:20%;

    }

    I am using thesis, and both my theme and wp are up to date. Please help.
    Thanks

  27. jenette says:

    I figured it out (above question).

  28. Ivy says:

    Hi LeeAnne, I will send you an email regarding this as I will need to take a closer look at your site.

  29. LeeAnne says:

    @ Ivy, yes — I’ve tried it both ways, no go.

  30. Ivy says:

    @ LeeAnne, Do you have “Auto Redirect” turned on in your “PayPal Profile”?

  31. LeeAnne says:

    Using this at http://www.pacaqua.org/pacaqua_news/index.php?page_id=89, with paypal sandbox. On return from paypal, the cart does not clear. Can I manually reset the cart on page reload or something?

  32. admin says:

    Browsers work in mysterious ways :) (just kidding)

    If you hit refresh a page, the browser will always redo the last operation fully (remember you are not loading a page you are reloading (refresh means reload). So if your last operation was adding an item to the cart then refreshing the page immediately after this operation will add another item to the cart (Ofcourse the browser will give you a warning telling you about this… if you don’t like it then you can hit cancel and not go forward with this operation).

    Now why doesn’t it add an item to the cart when this is done on this site? Because we automatically redirect the customer to the checkout page after an item addition (this is a feature in eStore). So when you add an item there are actually two operations:

    1) Add the item to the cart
    2) Redirect the user to the checkout page

    The last operation was the redirect to the checkout page which is why the refresh do not add an item to the cart.

  33. Tasha says:

    I am piggy backing off of Miguel. Ivy you stated that the reason the cart adds another item is because the of the browser. Well I am having the same issue but what I have noticed is that when I refresh this site the quantity does not increase. I am using the same browser to view both my page and tips and tricks. So I’m confused. Why would the quantity increase on my site but not here. Did you do something different then when inputting your cart on the page?

  34. admin says:

    @Gary, if you want to always display the cart then use the shortcode explained here:

    http://www.tipsandtricks-hq.com/forum/topic/when-nothing-is-added-to-cart-nothing-appears

  35. Gary says:

    Just giving the plugin it’s first run. It looks good. However, the cart does not appear until I add a product. Also, if after adding a product(s) I remove all products, the cart disappears. I do not get the “Your cart is empty” message with an empty cart. Is there a setup step that I have missed?

  36. Ivy says:

    Hi Miguel, 1.) To use a custom “Add to Cart” button image all you need to do is specify the image in the “Add to Cart button text or Image” in the settings menu of the Simple Shopping Cart.

    2.) This is how browsers work. When you refresh the page the last action you did will be repeated. So if you have added a product and you refresh the page it will then add the product again increasing the quantity. This has nothing to do with the plugin.

    Please let me know if you have anymore questions.

    Cheers,
    Ivy

  37. Miguel says:

    One more question:
    When selecting the products, if there ias a product already in the shopping cart, ant the page is reloaded, the quantity is automatically increased by one.

    That is, if you had selected 4 beers and the page is reloaded, it will show 5 beers.

    Is there a way around this?

    THanks.

  38. Miguel says:

    Hi,

    Great job!!!. I wonder if there is a way to use a custom “add to cart” button.

    Thanks

  39. Ivy says:

    Hi Margaret, I had a look at your site and I am not finding this error. Can you please tell me where this error is happening? What action are you doing when this happened?

    Cheers,
    Ivy

  40. Margaret says:

    I’m having the same problem as Alenka… (above). I’m getting the following error:
    Warning: Invalid argument supplied for foreach() in /home/pagan11460/ctdrybasements.com/site/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 141

    It’s on this page: http://www.ctdrybasements.com/make-a-payment/

    Can anyone help me figure out what’s wrong? I’m using the latest version of WP and the latest version of the plugin.

  41. admin says:

    @Chris, it sounds like your PHP session is not working on your server. This link should guide you:

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

  42. Victoria says:

    That fixed it! Thanks for the very quick response!

  43. Im using this plugin on http://www.chromekingz.com, and it wont let me change the quantity. When I enter a quantity and press enter it remove my item from the cart. The website is up now if anyone can help, I have one rim as a product that im testing, please help me.

  44. Ivy says:

    Hi Victoria, It looks like you have a small error in your code

    [wp_cart:Up up and away 11x14:14.99:PRODUCT-PRICE:var1[Finish|Matte|Glossy]:end]

    The words product-price needs to me removed it should look like this.

    [wp_cart:Up up and away 11x14:price:14.99:var1[Finish|Matte|Glossy]:end]

    Please try this code and let me know how it goes.

    Cheers,
    Ivy

  45. Victoria says:

    Sorry, to be more specific, the problem is here:
    http://www.rustykirkpatrick.com/2010/05/up-up-and-away/

  46. Victoria says:

    I am trying to set up this shopping cart with the variable as follows:

    [wp_cart:Up up and away 11x14:14.99:PRODUCT-PRICE:var1[Finish|Matte|Glossy]:end]

    When I publish the post, it shows up the code, not the add to cart. Any ideas?

  47. Ivy says:

    Hi Dave, This sounds like a PHP session issue. You will need to contact your hosting provider to fix this issue. They will need to check that the PHP session is turned on and configured properly. This should only take them a few minutes to do.

    If you send me a link to where this is happening I can verify if it is indeed a PHP session issue.

    Let us know how this goes.

    Cheers,
    Ivy

  48. Dave says:

    I originally placed a buying spot on every page. The shopping cart won’t stay occupied. When you jump to another page, it’s empty.

    What am I doing wrong?

    I’m very new to this process…. thanks!

  49. Alenka says:

    One more thing. I tried it on one computer and it’s working, but not working on another. The only difference would be that I used the first one for PayPal payments before. When I log into Paypal on the other computer, my page works too. Anything to do with cache or cookies? I don’t use WP Cache or anything similar.

  50. Alenka says:

    Hi,
    here is my sales page, when you click Buy, it goes to the Store (where the cart is) and then when you click Checkout, the error ocurred (in between the cart and Paypal)
    http://www.bestchildrenlessons.com/salesletters/law-of-attraction-games-for-children
    I already contacted my hosting provider and they upgraded php.ini, but the error is still there.
    Thanks, Alenka

  51. Ivy says:

    Hi, Alenka

    Can you please send me a link to where this issue is happening so I can take a look at it?

    Cheers,
    Ivy

  52. Alenka says:

    the error is: Warning:Invalid argument supplied for foreach() in /home/…./wp-content/plugins/wp-cart-for-digital-products/eStore_payment_submission.php on line 227
    thanks for yoour reply,Alenka

  53. Alenka says:

    Hi! First of all I have to say I’m very happy with your plugin (really easy to use and great documentation).
    But I have issues with the shopping cart. It works fine on one computer, and not on the other. When I click Buy button, it shows like there is nothing in the cart, then when I reload and click Buy again, the cart is shown corectly (with 1 qty), but when I hit Checkout, it shows error again, saying the cart is empty (in between it shows error -something like…..eStoreSubmissionPayment on line 227). What can be wrong?

  54. Ivy says:

    Hi KP, This post should explain variation control a little more you will need to scroll down about 1/2 though the page:

    http://www.tipsandtricks-hq.com/ecommerce/simple-wp-shopping-cart-installation-usage-290

    Cheers,
    Ivy

  55. KP says:

    I’m sorry for multi-posting. I got it to work but can only get 2 variables. Any tips?

  56. KP says:

    Follow up to my last post, would this be correct? This is what I have.

    [wp_cart:Banana Personalized BOOK:price:30.00:var1[HAIR COLOR|BLACK|BROWN|BLOND]:end]

  57. KP says:

    Hi. Great plug-in. Variation control is not working in the simple shopping cart. Can someone show me an example of the code?
    Thanks

  58. Thanks, Ivy, but I’m not using the estore plugin and the option to use the Paypal shipping option is not available in the simple shopping cart plugin. (wish it were, that would be easy)

  59. Ivy says:

    Hi DeBorah Beatty, Yes there is a way to do this.
    The following post will explain this in more detail (option 1):

    http://www.tipsandtricks-hq.com/ecommerce/how-the-shipping-cost-calculation-works-in-wordpress-estore-50

    Ivy

  60. Is there a way to set a standard shipping price, but not have it apply to digital products? I have a physical book, CDs and then several ebooks I’m selling through my site.

    Thanks.

  61. admin says:

    @Iba, I just tested that exact same code that you are entering on my test site and it’s working fine… can you please make sure you have the latest version of the pluing? The latest version of the plugin can be download from the following URL:

    http://www.tipsandtricks-hq.com/wordpress-simple-paypal-shopping-cart-plugin-768

  62. Iba says:

    I am trying to add the shipping cost but it’s not pulling up in the shopping cart.
    Here’s the code I put in:
    [wp_cart: FFT NB Gingerbreadman:price:9.00:shipping:4.95:end]

Leave a Reply

Your email address will not be published. Required fields are marked *