WP Shopping Cart Troubleshooting
Categories: Additional Resources
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:
nggallery 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(); ?>









January 9th, 2010 at 2:53 am
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]
January 9th, 2010 at 3:23 am
@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
January 17th, 2010 at 8:55 pm
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.
January 17th, 2010 at 10:58 pm
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
January 18th, 2010 at 1:05 am
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)
March 15th, 2010 at 3:33 am
Hi. Great plug-in. Variation control is not working in the simple shopping cart. Can someone show me an example of the code?
Thanks
March 15th, 2010 at 3:35 am
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]
March 15th, 2010 at 3:46 am
I’m sorry for multi-posting. I got it to work but can only get 2 variables. Any tips?
March 15th, 2010 at 7:48 am
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
March 25th, 2010 at 10:08 am
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?
March 25th, 2010 at 4:21 pm
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
March 25th, 2010 at 11:43 pm
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
March 26th, 2010 at 5:52 am
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
March 26th, 2010 at 7:32 pm
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.
April 26th, 2010 at 6:08 pm
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!
April 27th, 2010 at 4:26 am
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
May 15th, 2010 at 12:17 am
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?
May 15th, 2010 at 12:18 am
Sorry, to be more specific, the problem is here:
http://www.rustykirkpatrick.com/2010/05/up-up-and-away/
May 15th, 2010 at 12:59 am
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
May 15th, 2010 at 1:08 am
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.
May 15th, 2010 at 1:13 am
That fixed it! Thanks for the very quick response!
May 15th, 2010 at 9:16 am
@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
May 26th, 2010 at 2:01 am
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.
May 26th, 2010 at 2:17 am
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
May 28th, 2010 at 9:04 pm
Hi,
Great job!!!. I wonder if there is a way to use a custom “add to cart” button.
Thanks
May 28th, 2010 at 9:38 pm
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.
May 29th, 2010 at 4:30 am
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
June 3rd, 2010 at 1:37 am
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?
June 4th, 2010 at 5:35 am
@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
July 7th, 2010 at 1:49 pm
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?
July 8th, 2010 at 12:19 am
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.
July 22nd, 2010 at 11:16 pm
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?
July 23rd, 2010 at 4:16 am
@ LeeAnne, Do you have “Auto Redirect” turned on in your “PayPal Profile”?
August 3rd, 2010 at 12:36 am
@ Ivy, yes — I’ve tried it both ways, no go.
August 3rd, 2010 at 2:04 am
Hi LeeAnne, I will send you an email regarding this as I will need to take a closer look at your site.
August 6th, 2010 at 1:22 am
I figured it out (above question).
August 11th, 2010 at 2:25 am
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
August 11th, 2010 at 4:37 am
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
August 11th, 2010 at 11:05 pm
Thank you so much, worked like a charm
August 20th, 2010 at 11:14 pm
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
August 21st, 2010 at 4:23 am
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?
August 21st, 2010 at 5:29 pm
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
August 22nd, 2010 at 3:43 am
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”.
November 1st, 2010 at 5:51 pm
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.
November 2nd, 2010 at 2:05 am
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.
November 3rd, 2010 at 2:53 am
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”
November 4th, 2010 at 1:04 am
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.
November 9th, 2010 at 12:56 am
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
November 9th, 2010 at 6:16 am
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.
December 9th, 2010 at 9:48 pm
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
December 9th, 2010 at 10:06 pm
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
January 2nd, 2011 at 4:54 pm
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.
January 2nd, 2011 at 8:41 pm
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.
January 7th, 2011 at 6:56 pm
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.
January 7th, 2011 at 11:55 pm
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.
February 11th, 2011 at 10:12 pm
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
February 12th, 2011 at 6:13 am
@Hank, PHP session on your site doesn’t seem to be working correctly. Only your host can fix the PHP session problem.
February 19th, 2011 at 8:57 pm
@Hank, also having the same issue as you! Did you host resolve this? Please Help! Thank you!
March 9th, 2011 at 8:24 pm
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.
March 10th, 2011 at 12:47 am
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.
November 10th, 2011 at 7:38 pm
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!
January 16th, 2012 at 8:09 am
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.