Title: Single Product in Cart
Author: Piyush Jangid
Published: <strong>21 Tháng 2, 2025</strong>
Last modified: 14 Tháng 8, 2026

---

Tìm kiếm plugin

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

# Single Product in Cart

 Bởi [Piyush Jangid](https://profiles.wordpress.org/piyushjangid/)

[Tải về](https://downloads.wordpress.org/plugin/single-product-in-cart.1.0.1.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/single-product-in-cart/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/single-product-in-cart/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/single-product-in-cart/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/single-product-in-cart/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/single-product-in-cart/)

## Mô tả

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).

## Cài đặt

 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.

## Hỏi đáp

### 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.

## Đánh giá

![](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 Tháng 6, 2025

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

 [ Đọc tất cả 1 đánh giá ](https://wordpress.org/support/plugin/single-product-in-cart/reviews/)

## Người đóng góp & Lập trình viên

“Single Product in Cart” là mã nguồn mở. Những người sau đã đóng góp vào plugin 
này.

Những người đóng góp

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

[Dịch “Single Product in Cart” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/single-product-in-cart)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/single-product-in-cart/),
check out [SVN repository](https://plugins.svn.wordpress.org/single-product-in-cart/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/single-product-in-cart/)
qua [RSS](https://plugins.trac.wordpress.org/log/single-product-in-cart/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0.1

 * Fixed bugs and errors.

#### 1.0.0

 * Initial release.

## Meta

 *  Phiên bản **1.0.1**
 *  Cập nhật lần cuối **3 tháng trước**
 *  Số lượt cài đặt **100+**
 *  Phiên bản WordPress ** 5.6 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.0.8**
 *  Phiên bản PHP ** 7.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/single-product-in-cart/)
 * Thẻ
 * [cart](https://vi.wordpress.org/plugins/tags/cart/)[checkout](https://vi.wordpress.org/plugins/tags/checkout/)
   [ecommerce](https://vi.wordpress.org/plugins/tags/ecommerce/)[single product](https://vi.wordpress.org/plugins/tags/single-product/)
   [woocommerce](https://vi.wordpress.org/plugins/tags/woocommerce/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/single-product-in-cart/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  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)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/single-product-in-cart/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/single-product-in-cart/)