Title: Allow Only 1 Product in Cart
Author: Yasar Khalifa
Published: <strong>October 4, 2019</strong>
Last modified: July 18, 2025

---

Search plugins

![](https://ps.w.org/allow-only-1-product-in-cart-for-woocommerce/assets/banner-
772x250.png?rev=3330086)

![](https://ps.w.org/allow-only-1-product-in-cart-for-woocommerce/assets/icon-256x256.
png?rev=3330029)

# Allow Only 1 Product in Cart

 By [Yasar Khalifa](https://profiles.wordpress.org/yasirkhalifa/)

[Download](https://downloads.wordpress.org/plugin/allow-only-1-product-in-cart-for-woocommerce.zip)

 * [Details](https://en-ca.wordpress.org/plugins/allow-only-1-product-in-cart-for-woocommerce/#description)
 * [Reviews](https://en-ca.wordpress.org/plugins/allow-only-1-product-in-cart-for-woocommerce/#reviews)
 *  [Installation](https://en-ca.wordpress.org/plugins/allow-only-1-product-in-cart-for-woocommerce/#installation)
 * [Development](https://en-ca.wordpress.org/plugins/allow-only-1-product-in-cart-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/allow-only-1-product-in-cart-for-woocommerce/)

## Description

This plugin ensures that users can only purchase one product at a time.
 When a 
logged-in user clicks the “Add to Cart” button, any existing cart content is cleared—
allowing only the new product to remain.

Perfect for scenarios like bookings, appointments, or exclusive product sales where
only one item should be bought per order.

Note: This plugin works **only for logged-in users**. Guest users are not affected.

## Installation

 1. Upload the `allow-only-1-product-in-cart` folder to the `/wp-content/plugins/` 
    directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Done! The plugin will now enforce one product per cart.

## FAQ

### Q: Will it work with variable or grouped products?

A: Yes, the plugin works with all product types by clearing the cart before any 
product is added.

### Q: Does it work for guest users?

A: No, this plugin only works for logged-in users. Guest users are not affected.

## Reviews

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

### 󠀁[Works smoothly with WooCommerce](https://wordpress.org/support/topic/works-smoothly-with-woocommerce/)󠁿

 [Kirtikumar Solanki](https://profiles.wordpress.org/solankisoftware/) August 25,
2025

Highly recommended if you’re looking for a quick and effective solution for single-
product checkout.

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

### 󠀁[Wonderful plugin](https://wordpress.org/support/topic/wonderful-plugin-728/)󠁿

 [meetpatel6701](https://profiles.wordpress.org/meetpatel6701/) November 28, 2022

This is the perfect plugin for woo commence single product to cart

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

### 󠀁[Awesome plugin simple to use](https://wordpress.org/support/topic/awesome-plugin-simple-to-use/)󠁿

 [sipak](https://profiles.wordpress.org/sipak/) October 5, 2022

Nice features. It saves my time. Very friendly Online Support

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

### 󠀁[Plugin is very useable](https://wordpress.org/support/topic/plugin-is-very-useable/)󠁿

 [yash19021998](https://profiles.wordpress.org/yash19021998/) February 4, 2022

for woo commerce site this plugin helpful to organize cart item

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

### 󠀁[Helps lots](https://wordpress.org/support/topic/helps-lots/)󠁿

 [kamendra432](https://profiles.wordpress.org/kamendra432/) February 4, 2022

Amazing plugin to have just 1 product in cart

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

### 󠀁[An Amazing Plugin!](https://wordpress.org/support/topic/an-amazing-plugin-31/)󠁿

 [meenaxi08](https://profiles.wordpress.org/meenaxi08/) May 24, 2021

Hello There Thanks for this plugin it was amazing and the logic is completely amazing
I am using this plugin on my site Relevant and Better!!

 [ Read all 9 reviews ](https://wordpress.org/support/plugin/allow-only-1-product-in-cart-for-woocommerce/reviews/)

## Contributors & Developers

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

Contributors

 *   [ Yasar Khalifa ](https://profiles.wordpress.org/yasirkhalifa/)

[Translate “Allow Only 1 Product in Cart” into your language.](https://translate.wordpress.org/projects/wp-plugins/allow-only-1-product-in-cart-for-woocommerce)

### Interested in development?

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

## Changelog

#### 1.2

 * Added internationalization support (i18n).

#### 1.1

 * Minor code changes.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.2**
 *  Last updated: **1 year ago**
 *  Active installations: **500+**
 *  WordPress Version: ** 4.0 or higher **
 *  Tested up to: **6.9.10**
 *  PHP Version: ** 5.6 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/allow-only-1-product-in-cart-for-woocommerce/)
 * Tags:
 * [add to cart](https://en-ca.wordpress.org/plugins/tags/add-to-cart/)[customer](https://en-ca.wordpress.org/plugins/tags/customer/)
   [one product](https://en-ca.wordpress.org/plugins/tags/one-product/)[product](https://en-ca.wordpress.org/plugins/tags/product/)
   [woocommerce](https://en-ca.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://en-ca.wordpress.org/plugins/allow-only-1-product-in-cart-for-woocommerce/advanced/)

## Ratings

 5 out of 5 stars.

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

[Your review](https://wordpress.org/support/plugin/allow-only-1-product-in-cart-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/allow-only-1-product-in-cart-for-woocommerce/reviews/)

## Contributors

 *   [ Yasar Khalifa ](https://profiles.wordpress.org/yasirkhalifa/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/allow-only-1-product-in-cart-for-woocommerce/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://myasark.wordpress.com/)