Allow Only 1 Product in Cart
Allow Only 1 Product in Cart
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
- Upload the
allow-only-1-product-in-cartfolder to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Done! The plugin will now enforce one product per cart.
Faq
A: Yes, the plugin works with all product types by clearing the cart before any product is added.
A: No, this plugin only works for logged-in users. Guest users are not affected.
Reviews
Works smoothly with WooCommerce
By Kirtikumar Solanki (solankisoftware) on August 25, 2025
Highly recommended if you’re looking for a quick and effective solution for single-product checkout.
Wonderful plugin
By meetpatel6701 on November 28, 2022
Awesome plugin simple to use
By sipak on October 5, 2022
Plugin is very useable
By yash19021998 on February 4, 2022
Helps lots
By kamendra432 on February 4, 2022
An Amazing Plugin!
By meenaxi08 on May 24, 2021
Great!!
By ahmaddastageer32 on March 15, 2021
Amazing!
By pablopiano on December 27, 2020
great..!!
By Meet Raj (meetraj) on December 13, 2019
Changelog
1.2
- Added internationalization support (i18n).
1.1
- Minor code changes.
1.0.0
- Initial release.