website_sale_cart_expire
Automatically cancels inactive website shopping carts after a configurable delay.
Key Features
- website: Stores a per-website cart expiration delay and provides scheduler logic to cancel draft carts once expired while skipping orders with in-progress payments and logging a message.
- sale.order: Computes a cart expiration timestamp from the latest cart activity or transaction change and offers a hook to bypass expiration when appropriate.
- res.config.settings: Adds a Website settings option to set the cart expiration delay per website using an hours-based input.
- scheduler: Runs a cron task every five minutes to evaluate enabled websites and cancel overdue draft carts automatically.