Title: Single Product in Cart
Author: Piyush Jangid
Published: <strong>February 21, 2025</strong>
Last modified: August 14, 2026

---

Search plugins

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

# Single Product in Cart

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

[Download](https://downloads.wordpress.org/plugin/single-product-in-cart.1.0.1.zip)

 * [Details](https://wordpress.org/plugins/single-product-in-cart/#description)
 * [Reviews](https://wordpress.org/plugins/single-product-in-cart/#reviews)
 *  [Installation](https://wordpress.org/plugins/single-product-in-cart/#installation)
 * [Development](https://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.

## Reviews

![](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/) June 18, 2025

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

 [ Read all 1 review ](https://wordpress.org/support/plugin/single-product-in-cart/reviews/)

## Contributors & Developers

“Single Product in Cart” is open source software. The following people have contributed
to this plugin.

Contributors

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

[Translate “Single Product in Cart” into your language.](https://translate.wordpress.org/projects/wp-plugins/single-product-in-cart)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/single-product-in-cart/),
check out the [SVN repository](https://plugins.svn.wordpress.org/single-product-in-cart/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/single-product-in-cart/)
by [RSS](https://plugins.trac.wordpress.org/log/single-product-in-cart/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Fixed bugs and errors.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.1**
 *  Last updated **2 weeks ago**
 *  Active installations **90+**
 *  WordPress version ** 5.6 or higher **
 *  Tested up to **7.0.4**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [cart](https://wordpress.org/plugins/tags/cart/)[checkout](https://wordpress.org/plugins/tags/checkout/)
   [ecommerce](https://wordpress.org/plugins/tags/ecommerce/)[single product](https://wordpress.org/plugins/tags/single-product/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/single-product-in-cart/advanced/)

## Ratings

 5 out of 5 stars.

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

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

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

## Contributors

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

## Support

Got something to say? Need help?

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