
內容簡介
WooCommerce不會將物品從庫存中移除,直到有人實際購買該物品。
這個外掛可以減少物品的“虛擬”庫存數量,而不必實際修改物品
庫存,因此如果購物車數據不小心被刪除,就不會出現缺失數據的問題。這個外掛不適合
所有人使用,但對於銷售特殊物品的人來說,它是很有用的,並且可以消除一些客戶支援上的噩夢。
這個外掛可以自動從購物車中刪除期限已到的物品(默認禁用),並設定可配置的到期時間。
到期時間是以 php strtotime 函數所支援的明文方式來呈現 (舉例來說:10分鐘、1 小時、6 小時、1 天)
每項物品的到期時間可以通過將自訂字段添加到每個物品中,並使用配置的
'Expire Custom Key'(默認名稱為 'csr_expire_time')來配置。
到期可以獨立於減少購物車庫存而啟用,因此此外掛還可以用於在
默認的 WooCommerce 購物車/會話到期之外的其他間隔時間到期物品。
這個問題在 WooCommerce 问题跟踪器 中開放了一個問題,並且有人在 Facebook 上發帖引起了我的註意。
請通過 GitHub 儲存庫 提交錯誤報告、功能請求和拉取請求。
待處理事項
檢查是否添加了 ajax 和 mini-cart 提示
為 WordPress.org 拍一些截圖
添加某種指示器到購物車中,以便您知道哪些物品將過期
感謝
BluelotusWorks 的 Bob DeYoung,感謝您的測試、反饋和支持
外掛標籤
開發者團隊
② 後台搜尋「WooCommerce Cart Stock Reducer」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
WooCommerce doesn’t remove an item from inventory until someone actually buys
that item. This plugin can reduce the “virtual” stock quantity of an item without actually modifying the item
inventory, so there should be no problems with missing data if somehow the cart data is deleted. This plugin isn’t for
everyone, but people that are selling specialty items will find it useful and hopefully eliminate some customer
support nightmares.
The plugin can automatically expire items from the cart (disabled by default) with a configurable expiration time.
Expiration times are plain english using whatever types php’s strtotime can support (Examples: 10 minutes, 1 hour, 6 hours, 1 day)
Per item expiration time can be configured by adding a Custom Field to each item using the configured
‘Expire Custom Key’ (default name is ‘csr_expire_time’).
Expiration can be enabled independently of reducing the cart stock, so this plugin can also be used to expire items at
other intervals than the default WooCommerce cart/session expiration.
An issue was opened on the WooCommerce issue tracker regarding
this problem and someone posted on Facebook about it, which caught my attention.
Please submit bug reports, feature requests, and pull requests via the GitHub repository
TODO
Look into adding ajax and mini-cart notices
Take some screenshots for wordpress.org
Add some kind of indicator to cart so you know what items will expire
Thanks
Bob DeYoung of BlueLotusWorks for testing, feedback, and support
