Title: Single Product in Cart
Author: Piyush Jangid
Published: <strong>21 février 2025</strong>
Last modified: 14 août 2026

---

Recherche d’extensions

![](https://s.w.org/plugins/geopattern-icon/single-product-in-cart.svg)

# Single Product in Cart

 Par [Piyush Jangid](https://profiles.wordpress.org/piyushjangid/)

[Télécharger](https://downloads.wordpress.org/plugin/single-product-in-cart.1.0.1.zip)

 * [Détails](https://fr.wordpress.org/plugins/single-product-in-cart/#description)
 * [Avis](https://fr.wordpress.org/plugins/single-product-in-cart/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/single-product-in-cart/#installation)
 * [Développement](https://fr.wordpress.org/plugins/single-product-in-cart/#developers)

 [Support](https://wordpress.org/support/plugin/single-product-in-cart/)

## Description

The **Single Product in Cart** plugin ensures that only one product can exist in
the WooCommerce cart at any given time. When a customer adds a new product to the
cart, the plugin automatically removes any existing product and replaces it with
the new one. This happens silently, without any warning messages.

This plugin is ideal for stores that want to enforce a single-product purchase flow,
such as subscription-based services, exclusive product sales, or limited-time offers.

### Key Features:

 * Ensures only one product is in the cart at a time.
 * Automatically replaces existing products when a new one is added.
 * Works seamlessly with WooCommerce cart and checkout pages.
 * No warning messages shown to customers during product replacement.
 * Compatible with both simple and variable products.

### Credits

Developed by [Piyush Jangid](https://piyushjangid.in).

## Installation

 1. Upload the `single-product-in-cart` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Ensure WooCommerce is installed and activated.

That’s it! The plugin will automatically enforce a single-product cart.

## FAQ

### Does this plugin work with WooCommerce subscriptions?

Yes, it works with all WooCommerce product types, including subscriptions.

### Can customers adjust the quantity of the single product?

Yes, customers can adjust the quantity of the single product in the cart.

### What happens if a customer adds multiple products via a direct link?

The plugin ensures only the last added product remains in the cart, removing all
others.

### Is this plugin compatible with WooCommerce Blocks?

Yes, it works seamlessly with WooCommerce Blocks and the classic cart/checkout pages.

## Avis

![](https://secure.gravatar.com/avatar/75ccac501f6e16d7690698881ec791b33f72d6a6164a3effd9331b8e3895ae22?
s=60&d=retro&r=g)

### 󠀁[Perfects!](https://wordpress.org/support/topic/perfects/)󠁿

 [tuannguyenplv](https://profiles.wordpress.org/tuannguyenplv/) 18 juin 2025

Thank you to the creator. This plugin has completely resolved the problem I was 
facing.

 [ Lire l’avis ](https://wordpress.org/support/plugin/single-product-in-cart/reviews/)

## Contributeurs/contributrices & développeurs/développeuses

« Single Product in Cart » est un logiciel libre. Les personnes suivantes ont contribué
à cette extension.

Contributeurs

 *   [ Piyush Jangid ](https://profiles.wordpress.org/piyushjangid/)

[Traduisez « Single Product in Cart » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/single-product-in-cart)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/single-product-in-cart/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/single-product-in-cart/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/single-product-in-cart/)
par [RSS](https://plugins.trac.wordpress.org/log/single-product-in-cart/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

#### 1.0.1

 * Fixed bugs and errors.

#### 1.0.0

 * Initial release.

## Méta

 *  Version **1.0.1**
 *  Dernière mise à jour **il y a 2 mois**
 *  Installations actives **90+**
 *  Version de WordPress ** 5.6 ou plus **
 *  Testé jusqu’à **7.0.7**
 *  Version de PHP ** 7.4 ou plus **
 *  Langue
 * [English (US)](https://wordpress.org/plugins/single-product-in-cart/)
 * Étiquettes
 * [cart](https://fr.wordpress.org/plugins/tags/cart/)[checkout](https://fr.wordpress.org/plugins/tags/checkout/)
   [ecommerce](https://fr.wordpress.org/plugins/tags/ecommerce/)[single product](https://fr.wordpress.org/plugins/tags/single-product/)
   [woocommerce](https://fr.wordpress.org/plugins/tags/woocommerce/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/single-product-in-cart/advanced/)

## Évaluations

 5 sur 5 étoiles.

 *  [  1 avis à 5 étoile     ](https://wordpress.org/support/plugin/single-product-in-cart/reviews/?filter=5)
 *  [  0 avis à 4 étoile     ](https://wordpress.org/support/plugin/single-product-in-cart/reviews/?filter=4)
 *  [  0 avis à 3 étoile     ](https://wordpress.org/support/plugin/single-product-in-cart/reviews/?filter=3)
 *  [  0 avis à 2 étoile     ](https://wordpress.org/support/plugin/single-product-in-cart/reviews/?filter=2)
 *  [  0 avis à 1 étoile     ](https://wordpress.org/support/plugin/single-product-in-cart/reviews/?filter=1)

[Votre avis](https://wordpress.org/support/plugin/single-product-in-cart/reviews/#new-post)

[Tout voir](https://wordpress.org/support/plugin/single-product-in-cart/reviews/)

## Contributeurs

 *   [ Piyush Jangid ](https://profiles.wordpress.org/piyushjangid/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/single-product-in-cart/)