Sale icon Fall for Wpmet Up to 83% OFF
ENDING IN:
00 DAY
:
00 HOUR
:
00 MIN
:
00 SEC
Grab Your Deal Today Arrow Icon

Comment résoudre l’erreur de panier vide WooCommerce

How to solve wooCommerce cart issue

Êtes-vous confronté au Le panier WooCommerce est vide problème?

WooCommerce turns online shopping into a smooth ride. But unfortunately, you may sometimes face technical issues like “the cart is empty" ou "your WooCommerce cart is currently empty“. Such issues can cause you to lose customers, and as a result, you may end up losing money in your online business.

If you are facing the empty cart issue, then no worries. You have come to the right place. In this blog, I have put together all the possible issues that may be causing WooCommerce empty cart errors and ways to solve them.

Commençons…

Why is the WooCommerce cart showing empty after adding products?
The WooCommerce empty cart issue happens when products are added to the cart but are not stored or retrieved properly. In most cases, this is caused by cache conflicts, session problems, plugin incompatibility, or incorrect WooCommerce settings.

How to identify the cause of the WooCommerce empty cart issue

The moment when the cart becomes empty often helps identify the root cause.

If the cart becomes empty…Most likely cause
After refreshing the pageCaching or session issues
After logging inSession migration problems
After applying a couponPlugin or AJAX conflicts
Only for guest usersCookie restrictions
On specific devices or browsersBrowser cookie settings
Randomly during checkoutSession expiration or plugin conflicts

How to fix WooCommerce empty cart issue
✅ Configure WordPress, server-side, and CDN caching correctly.
✅ Check WooCommerce System Status and page setup.
✅ Clear WooCommerce sessions and transients.
✅ Verify checkout endpoint settings.
✅ Update WordPress, WooCommerce, themes, and plugins.
✅ Reset permalinks.
✅ Test for plugin conflicts.
✅ Switch temporarily to a default WordPress theme.

Résumé

The WooCommerce empty cart issue is usually caused by caching, session handling problems, or plugin conflicts. Identifying when the cart becomes empty can help you find the correct solution faster.

Quel est le problème du panier vide WooCommerce ?

Empty cart issue arises when you add products to your online WooCommerce shopping cart, but somehow find your cart saying “your cart is currently empty”. This is not the normal “your cart is empty” message this is a technical issue that’s stopping your cart to update when you add products.

Most common causes of WooCommerce empty cart problems

Although the WooCommerce empty cart issue can have multiple causes, the following are responsible for most cases:

  1. Incorrect cache configuration
  2. Expired WooCommerce sessions
  3. Plugin conflicts
  4. Theme compatibility issues
  5. Cookie restrictions
  6. Checkout endpoint errors
  7. Outdated WooCommerce versions
  8. Server-side caching conflicts

If you are unsure where to start, checking these areas first can help identify the issue more quickly.

How to Diagnose The WooCommerce Empty Cart Issue Before You Start Fixing

Before jumping into solutions, you need to ask the right diagnostic questions, otherwise you could spend hours applying the wrong fix. Use these quick checks to pinpoint the likely cause in under 5 minutes.

Step 1: Ask, does the cart empty immediately after adding a product, or after a page refresh/navigation?

  • Empties immediately → The “Add to Cart” AJAX request is likely failing. Open your browser’s developer tools (press F12), go to the Console tab, and look for red JavaScript errors. Also check the Network tab for failed POST requests to ?wc-ajax=add_to_cart.
  • Empties after refresh or navigating to the cart page → A session or cookie problem is most likely the cause. This is often a caching issue or a cookie being blocked.

Step 2: Ask does the cart work for logged-in users but not for guests?

  • Si Oui → WooCommerce is failing to save guest sessions to the wp_woocommerce_sessions database table. This is a specific session-handling bug (see Solution #2 and the Cookie section below).
  • Si no (broken for everyone) → The problem is more likely caching, a plugin conflict, or a site-wide configuration error.

Step 3: Ask, when did the problem start?

Think back: Did you recently install or update a plugin, theme, or WordPress itself? The timing of the break almost always points to the culprit. If you have a changelog, compare it against the date the cart issue began and undo that change first before trying anything else.

Step 4: Ask, does the cart work in a private/incognito browser window with no extensions?

  • If it works in incognito → A browser extension (ad blocker, privacy tool) is blocking WooCommerce’s session cookies. The fix is on the visitor’s end, but you can make your site more robust (see Cookie section below).
  • If it still fails in incognito → The problem is server-side (caching, session configuration, SSL).

Step 5: Check the WooCommerce logs

Aller à WordPress Dashboard → WooCommerce → Status → Logs and look at wc-session-handler.log. Any entries there will point directly to where WooCommerce is failing to read or write session data.

Also read, how to add WooCommerce Mini Cart button in Elementor

Comment résoudre l’erreur de panier vide WooCommerce

With customer feedback and my own experiences, I have found there are about 10 reasons that can cause the cart to show empty despite adding products.  Let’s check the problems and how you can solve those one by one to get rid of “your cart is empty” error or WooCommerce add to cart page not working:

Solution #1 : vérifier l'état du système WooCommerce et la configuration de la page WooCommerce

L’état du système WooCommerce affichera un signe rouge pour signaler tous les problèmes liés à l’environnement de votre site Web susceptibles d’entrer en conflit avec les fonctionnalités de WooCommerce. Ainsi, votre premier travail consiste à vérifier si wooCommerce vous donne des signaux d’alarme.

Aller à Tableau de bord WordPress → WooCommerce → Status et corrigez tous les problèmes avec un avertissement rouge (si vous en recevez).

WooCommerce Empty Cart - Woo Status Page

Assurez-vous également de vérifier que toutes les pages wooCommerce sont correctement définies et que votre thème ne remplace pas la page du panier par défaut, et si le remplacement ne pose aucun problème.

WooCommerce Empty Cart - Woo Pages Status Page

🤷 Vous souhaitez ajouter du CSS personnalisé à votre site Web Elementor ? 

Découvrez différentes façons d'ajouter du CSS personnalisé dans Elementor sur notre blog
👉👉 Comment ajouter du CSS personnalisé dans Elementor : 4 méthodes simples

Solution #2 : Effacer la session et les transitoires sous les outils WooCommerce

La suppression des transitoires WooCommerce, des transitoires expirés, la réinitialisation du nombre de termes et la suppression des sessions client peuvent également résoudre votre problème de panier vide. Aller à  WordPress Dashboard → WooCommerce → Status → Tools and follow the screenshot below to reset and clear all the mentioned options.

Why clearing sessions can fix the issue

WooCommerce stores cart information using customer sessions.

When a customer adds a product to the cart, WooCommerce temporarily stores that information and retrieves it while the customer continues browsing your store.

If the session expires unexpectedly or becomes corrupted, WooCommerce may fail to load the cart contents and display an empty cart instead.

Clearing customer sessions and transients helps WooCommerce generate fresh session data and often resolves the issue.

Solution #3 : assurez-vous qu'il n'y a pas d'espace dans les points de terminaison de paiement

Aller à WordPress Dashboard → WooCommerce → Settings → Advanced tab et vérifiez qu'il n'y a pas d'espace dans les points de terminaison d'extraction.

WooCommerce Empty Cart - Woo Checkout End Points

Solution #4 : Mettre à jour WordPress et WooCommerce du site Web

Avoir une version ancienne et obsolète de WordPress ou WooCommerce peut provoquer ce problème. Vous devez donc vous assurer que votre site dispose de la version la plus récente de WordPress et WooCommerce.

You can check from the dashboard if your WordPress or WooCommerce needs to update and update if required. You can also re-install the existing version if you think files have been corrupted.

WooCommerce Empty Cart - Update as needed

Solution #5 : mettre à jour le thème et les plugins

Non seulement WordPress et WooCommerce, les thèmes et les plugins doivent également être mis à jour régulièrement. Vérifiez donc si le thème et les plugins que vous utilisez doivent être mis à jour et mis à jour si nécessaire. Cela peut également résoudre votre problème de panier vide WooCommerce.

Note: Tout mettre à jour aveuglément (WordPress, WooCommerce, Thème et Plugins) n’est pas non plus une bonne idée. Vous devez vous assurer que toutes les versions mises à jour sont compatibles entre elles.

Solution #6 : réinitialiser les permaliens

La réinitialisation des permaliens WordPress peut résoudre le problème du panier vide. Pour réinitialiser, allez sur Tableau de bord WordPress → Paramètres → Choose the Permalinks → Click Save changes.

Solution #7 : Désactivez temporairement tous les plugins et acceptez WooCommerce

Il s'agit d'une technique de dépannage très basique, mais elle peut également vous aider à résoudre l'erreur WooCommerce cart is empty. Si la désactivation d'un autre plugin résout votre problème de panier vide WooCommerce, vous pouvez être assuré que tout va bien avec WooCommerce sur votre site Web et corrigez le plugin à l'origine du problème.

🤷 Avez-vous déjà rencontré une erreur de serveur 400 Bad Request dans Elementor ? Découvrez différentes façons de résoudre cette erreur de serveur
👉👉 Comment corriger l'erreur de serveur 400 Mauvaise requête dans Elementor

Solution #8 : passer temporairement au thème par défaut de WP

Comme pour les plugins, il est possible que votre thème crée un conflit avec WooCommerce, vous pouvez donc passer temporairement à n'importe quel WordPress par défaut pour vérifier si le problème est résolu ou non. Si le problème est résolu, vous connaissez le problème et vous pouvez parler à votre fournisseur de thème pour résoudre le conflit.

Solution #9 : configurez les paramètres de cache appropriés du côté du plugin WordPress et du côté serveur.

As the cart displays dynamic contents, it should not be cached.

Pages that should never be cached

WooCommerce cart issues often occur when dynamic pages are cached.

To avoid this problem, always exclude the following pages from caching:

  • Page du panier
  • Page de paiement
  • Page Mon compte

These pages display customer-specific information. If cached versions are served to visitors, WooCommerce may fail to display the correct cart contents.

So, always use a WordPress cache plugin that has cache exclusion URLs. Not just WordPress plugins, some hosting provides also use their own cache systems such as Varnish which is also applied on the website.

Vous devriez donc parler à votre société d'hébergement pour configurer un paramètre de cache côté serveur approprié afin de résoudre le problème du panier vide.

Solution #10 : doit suivre les règles .htaccess par défaut

.htaccess file is usually used to put instructions on how user requests are handled. Check if you are using the standard .htaccess rule that WordPress provides. If not, fix the file to get the default .htaccess configuration. This can also solve the Page du panier WooCommerce is empty problem.

Conseils bonus

Apart from the empty cart issue, having a boring-looking cart page can also lead to customers leaving your website without completing the order. However, now you can reduce the cart page’s abundant rate by customizing your WooCommerce cart page to make it more attractive.

Moteur de boutique est un plugin révolutionnaire dans le monde de WooCommerce. Pas seulement la personnalisation de la page du panier, ShopEngine vous offre la possibilité de créer sur mesure toutes vos pages WooCommerce comme fiche produit, page de catégorie, page de paiement en plusieurs étapes, page de remerciement etc.

De plus, il vous offre plus de 60 widgets et plus de 10 modules extrêmement utiles tels que Pré-commander, Commande différée, Paiement partiel, Avis de vente, Compte à rebours des ventes flash, Changeur de devises, Comparaison de produits, et beaucoup plus.

✨✨ Vérifiez comment vous pouvez utiliser l'option de personnalisation flexible de ShopEngine pour ajouter des champ personnalisé avancé vers la page de paiement WooCommerce.


✨✨ Besoin d'un plugin de panier d'achat pour améliorer votre boutique WooCommerce ? Consultez notre blog sur
Plugin de panier d'achat le plus utile pour WooCommerce

Questions fréquemment posées

How to know when your cart is empty?

You can easily find out whether your cart is empty or not by checking the cart page. It will notify you with an alert message “Your cart is empty” if there is no products added. Whenever you will add a product, this notification will be removed.

How does the empty cart button help your customers?

Empty cart button facilitates customers to remove all add to cart products with a single click. Therefore, your customers don’t need to delete products one-by-one that consumes extra time and effort.

Is it possible to save add to cart products for later purchase?

Yes, WooCommerce plugins allows you to save add to cart products for later purchase. But, this feature doesn’t come by default. You need to use a separate plugin like ShopEngine to enable this feature in WooCommerce.

What to do when your shopping cart is empty?

Whenever you face WooCommerce cart page not working error, clear browser cache. Also, lost shipping cart can show due to disable cookies. So, ensure your browser cookies are enabled.

How do I know if a plugin is causing my WooCommerce cart to empty?

Solution #7 says “disable all plugins” but doesn’t walk through the isolation process step by step. This FAQ would give a tighter, more actionable answer to the most common conflict-testing question.

Why does my WooCommerce cart empty after I apply a coupon code?

Very specific and heavily searched sub-issue. Coupon application triggers a cart recalculation and page reload — if sessions or caching aren’t configured correctly, the cart can wipe at exactly that moment. Not mentioned anywhere in the blog.

Why does my cart page show empty but the cart icon still shows items?

Your cart page is being cached. The cart icon updates in real time via AJAX and always shows the true count, but the cart page itself is returning a static cached version that was saved when the cart was empty — so the two fall out of sync.
To fix it, exclude /cart/ from your caching plugin’s settings. In WP Rocket, go to Settings → Advanced Rules → Never Cache URL(s) et ajouter /cart/. In Cloudflare, set a Page Rule to “Bypass” cache for yourdomain.com/cart/*. Once done, flush all cache layers and test again.

Why does WooCommerce cart become empty after page refresh?

This usually happens because WooCommerce cannot retrieve the latest cart data. Cache settings, customer sessions, and cookie restrictions are the most common causes. Excluding cart and checkout pages from caching often resolves the issue.

Why does WooCommerce cart become empty after login?

This can happen when WooCommerce fails to transfer cart data between guest sessions and logged-in user sessions. Session conflicts, outdated plugins, and customization issues are common causes.

How do I know if the WooCommerce empty cart issue is fixed?

Open your store in an incognito window, add products to the cart, refresh the page, and proceed to checkout. If the products remain in the cart throughout the shopping process, the issue has been resolved successfully.

Les derniers mots sur votre panier sont une erreur vide dans WooCommerce

So, you have found out all the measures to fix WooCommerce empty cart error. Hope this blog helped you to solve your WooCommerce empty cart page issue in no time. If you have any questions or confusion about any of the steps, leave a message in the comment box.


Avatar de Mainul Kabir Aion

Mainul Kabir Aion

Mainul Kabir Aion is a Product Marketing Strategist and Chief Product Officer specialising in WordPress products, AI-driven SEO, and inbound growth. He works at the intersection of product strategy, user behaviour, and search visibility, with hands-on experience scaling SaaS and WordPress businesses. His work focuses on Agile marketing, Answer Engine Optimisation (AEO), AI search visibility, and product-led growth.

commentaires

  1. Avatar de Arif

    La solution #2 a fonctionné pour moi, merci beaucoup.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Table des matières