內容簡介
這是一款針對 WooCommerce 設計的外掛程式,允許每個類別在購物車中只有一件商品。最新添加的商品會保留在購物車內,同一類別的商品如果已經在購物車中就會被移除。
重要提示:需要 WooCommerce 3.1+ 版本。建議使用 WooCommerce 3.0+ 或更高版本。
使用說明
當客戶想要添加商品時,這個外掛程式會檢查購物車,確保每個類別只有一件商品。最新添加的商品會保留在購物車內,同一類別的商品如果已經在購物車中就會被移除。
設定
設定步驟如下:
進入 ** 產品 > 類別 **
選擇一個類別,進入 * 編輯類別 *
勾選 “每個類別只允許有一項產品” 選項
更新以保存更改。
外掛標籤
開發者團隊
原文外掛簡介
Plugin made for WooCommerce. Allows only one product per category in the cart. The latest added item stays, items of the same category that are already in cart are removed.
Important: Requires WooCommerce 3.1+. WooCommerce 3.0+ or higher recommended.
Documentation
The plugin checks the cart when customer attempts to add a product and allows only one product per category in the cart. The latest added item stays, items of the same category that are already in cart are removed.
Setup
To set up:
Go to the ** Products > Categories **
Select a category and go to * Edit category *
Check the “One Product per Category” option
Update to save the changes.
