Directory / plugin
Single Item Cart for WooCommerce
v1.0.0 · by Asad Ali
Keep one product line in a WooCommerce cart. Adding a different product replaces the previous cart item while preserving the new item's quantity.
About this plugin
Single Item Cart for WooCommerce is designed for stores that sell one product at a time, such as single-product checkout funnels, bookings represented by WooCommerce products, or focused campaign stores.
When a shopper adds a product, the plugin removes other cart lines and keeps the newly added line. The selected product can still have a quantity greater than one. Product variations and item metadata stay with the selected line. Existing carts with multiple lines are reduced to the last line when loaded.
The plugin works with classic WooCommerce carts and the WooCommerce Store API used by Cart and Checkout blocks. It has no settings, external service, tracking, or database table.