Delete Shopping Baskets
In Miva, shopping baskets temporarily hold product inventory even if the customer never completes a purchase. Over time, abandoned or expired baskets can make it appear as though items are out of stock.
This article explains how basket expiration works (Basket Timeout) and outlines two ways to delete expired baskets: using the Review Baskets module and automating cleanup with a Scheduled Task.
There are two ways to delete expired (or all) baskets:
Use the Review Baskets module to manually filter, review, and delete baskets.
Use a Scheduled Task to automatically delete expired baskets at regular, scheduled intervals.
1. Setting up Basket Expiration
The Basket Timeout feature allows a Merchant to automatically set when a basket will expire.
Path: Settings > Store Settings > Store Details
Scroll to the Settings section and locate the Basket Timeout (Minutes) field.
Basket Timeout sets a time limit on how long the contents of a basket/ cart are held for a customer. When a customer hasn't purchased or changed the contents of their basket for that time, the basket is automatically expired.
Note: You must set up either Scheduled Task – Delete Expired Baskets or Review Baskets module for the contents of the basket to be returned to inventory. Setting the Basket Timeout field alone will not return product back inventory after a basket has expired.
2. Setting up Deleting Expired Baskets
Review Baskets Module
The Review Baskets module gives you a user-friendly interface to search, view, and delete baskets manually.
Path: > Settings > Modules > Search/ Install Review Basket.
In the search bar, type Review Basket to view the Module Settings.
In the Review Basket Settings you can:
1. Click the Delete All Baskets button to remove all displayed baskets.
2. Search baskets by customer or ID.
3. Filter by All Baskets or Non-Empty Baskets.
4. Use the dropdown menu to filter by time range: No Time Limit, Last 7 Days, Last 30 Days, Last 365 Days, or Exact Dates.
Note: Review Baskets also supports actions like modifying basket contents and converting a basket to an order.
Scheduled Task – Delete Expired Baskets
Basket deletion can also be automated using Scheduled Tasks:
Path: Settings > Store Settings > Schedules Tasks
To set up automatic deletion:
1. In the Scheduled Task search bar, type "basket" and select "Delete Expired Shopping Baskets".
2. Set the task schedule (for example, every 12 hours or once daily).
3. Save the task and make sure it is enabled.
This task will now automatically delete any expired baskets, returning their inventory to stock. It runs according to the schedule you define and does not require manual interaction.
Check out some related articles:
To learn more about Scheduled Task click here
For more on the Review Basket Module click here
For instructions on setting up Abandoned Basket Emails click here