The Item Youve Selected Was Not Added to Your Cart. Please Try Again.

For some reason, sometimes you add together products to cart merely the cart page stays empty (even if you can conspicuously see the cart widget has products in it for example).

But don't worry – it may just be a elementary cache effect (and if you don't know what cache is that's no problem either) or a theme / plugin "conflict".

The WooCommerce Cart page is extremely delicate; it displays dynamic content based on cookies and PHP sessions, is coded with PHP but likewise JS and Ajax, requires to be excluded from cache and is subject area to problems in case of out of date software.

And then, here's your "Empty Cart" troubleshooting checklist you can follow without any technical knowledge.

I also recommend you read through the (many) comments, because many developers shared what worked for them likewise. Good luck!

Set up 0. Update WordPress & WooCommerce

This is non even considered a fix because I give for granted your website is running on latest WordPress and WooCommerce. If that's not the case, well, there's no point you lot go along troubleshooting, considering once you written report a potential plugin / theme / hosting / whatever issues that you recollect is breaking the Cart, the support team will ask you to upgrade WP and WC earlier considering your issue. Just so you know!

Fix i. Think most what you lot inverse before the error occurred

Perchance you lot installed a new plugin? Or updated your theme? Or even yous customized WooCommerce with a custom adult snippet. Possibly, WordPress autoupdated.

If you go on a changelog of all your WooCommerce website changes and compare that to the engagement the Empty Cart error started, you tin can possibly identify quickly what the issue is, without having to follow the next steps.

If that's the case, simply uninstall the plugin y'all installed, or "rollback" / downgrade your theme to the previous version, or remove your custom snippet. That'due south probably what's causing your problem.

If non, keep going with your set attempt.

Fix 2. Temporary disable all plugins except WooCommerce

This is a typical troubleshooting functioning. You won't lose any plugin information or settings and you will be able to majority actuate all previously enabled plugins in a few seconds.

So, bulk disable all plugins and see if the Cart is back functioning.

If the Cart now fills up with products, well, that's a wonderful news. One of the plugins is responsible for causing the Empty Cart effect.

At present simply reactivate one plugin at a fourth dimension and test the Cart subsequently each time. As shortly as the Cart stops filling and is empty, well, the plugin you just reactivated is the "guilty" 1 – yay!

Disable that plugin. See if, for some reason, you lot've missed the latest update. If that's non the case, well, study the bug to the plugin developer (in case it's not fixed asap, go find an alternative).

Fix 3. Temporarily switch to 2020 theme (or like)

This is to prove the mistake is non theme-related. If deactivating plugins did not help, well, a Cart conflict may be created by your electric current theme.

You won't lose any theme settings if you temporarily switch to another theme, so don't worry – you will go all your widgets, menus, customizer settings and options back once you reactivate your current theme.

First of all, if you're using a child theme, temporarily switch to the parent theme and examination the Add to Cart / Cart functionality. This is to exclude issues in your kid theme.

If that doesn't do the trick, switch to 2020 theme, Storefront theme or whatsoever default WordPress theme you discover in the most popular themes tab.

If the error goes abroad, kickoff cheque if you missed out on a recent update (mostly premium themes may non prove WP Admin notices when an update is available). So, contact your theme developer and written report the issues.

If the error doesn't become away when switching the theme, then you have some other things to bank check if yous wish to gear up the Empty Cart error.

Fix 4. Brand sure Theme, WooCommerce & WordPress are using "compatible" versions

When you update a WordPress plugin, y'all will see a fiddling note inside the upgrade box – "Compatibility with WordPress 10.Y.Z: 100% (co-ordinate to its writer)":

Version Compatibility

There is no point to update WooCommerce (or another plugin), if information technology hasn't been tested with the latest WordPress version nonetheless.

The aforementioned applies to updating plugins that depend on WooCommerce. There is no signal in updating a premium WooCommerce extension if it hasn't been tested for the WooCommerce plugin version your website is on. In fact, before any major WooCommerce plugin update, you should come across this:

Major WooCommerce Plugin Updates

In the example above, there is no indicate to update WooCommerce, considering "WooCommerce Give Products" and "WooCommerce Product Add-ons" plugins have been tested only upward to WooCommerce two.half-dozen.0. In this example, yous'd need to look until those two plugins updates are released. Only so you become and update WooCommerce.

You lot should consider the same exact thinking when updating your WordPress theme. Sometimes theme developers crave a few days before they tin can adapt to the new WooCommerce changes (if major) and get 100% compatible. So, once once more, make sure WordPress, WooCommerce, WooCommerce Extensions and Theme versions are in sync.

Fix v. Make sure in that location is no "red font alarm" nether WooCommerce > Status

The almost important things to bank check in the Organization Status page are making sure all your "WC Pages" are correctly set, that the Cart page contains the correct shortcode and is publicly available, and that your theme has no out of date WooCommerce template overrides.

WooCommerce System Status OK
WooCommerce Organization Condition OK

Set up 6. Try clicking these buttons under WooCommerce > Status > Tools

Mostly the "Clear customer sessions" one can ordinarily help yous troubleshoot Cart problems (as well as shipping calculations bug, just and so y'all know).

WooCommerce: fix the cart is empty issue
Clear Customer Session @ WooCommerce Status

Fix seven. Salve (flush) your permalinks

Get to WordPress > Settings > Permalinks and click on the "update" button without changing anything. This should flush the permalinks and requite yous a chance to exam the cart again.

Set up 8. Check y'all accept no spaces in your checkout endpoints

Go to WooCommerce > Settings > Avant-garde > Checkout Endpoints and make certain you have no spaces in your endpoint URLs. This happened to a client of mine a while ago and it took me ages to find out it was causing the empty cart issue.

WooCommerce Checkout Endpoints
WooCommerce Checkout Endpoints

Set 9. Properly set upwardly your cache (plugin or server-side)

Cart, Checkout and My Account pages should never be cached because they brandish dynamic content.

If your WordPress cache plugin is for some reason caching these WooCommerce pages, your cart will probably show as empty. Make sure to select a WooCommerce-uniform cache plugin or i that allows you lot to add "cache exclusion URLs".

If that doesn't do the trick, be enlightened you may as well have server-side cache! Then, yes, ask your hosting provider to disable or properly set server-side cache by excluding the Cart. Checkout and My-Account URLs.

Some hosts rely on their own cache systems such as Varnish and this is sometimes applied to your website by default. Create a ticket or requite them a quick call to find out if they have anything like that and if they can disable that as presently as possible.

For example: WPEngine uses its own cache. This might affect your WooCommerce Cart. Delight contact support then they can create a caching exception list for WooCommerce and/or Ajax files

graysadince93.blogspot.com

Source: https://www.businessbloomer.com/woocommerce-solving-cart-empty-issue/

0 Response to "The Item Youve Selected Was Not Added to Your Cart. Please Try Again."

Postar um comentário

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel