Clean Up Old Baskets

Using the Clean up old baskets scheduled task, you can remove the baskets that have been stored for a long time. For example, the customer added several items to the basket but didn't complete the order. Keeping old baskets leads to the accumulation of unnecessary data.

NOTE

Note that if you need to keep the baskets for an extended period of time due to the way the business processes in your company are set up, you must properly configure how long the baskets should be kept or not remove the old baskets at all. Also, if you are using Sana Commerce Insights, keep in mind that if you delete the baskets, you will lose data associated with the baskets, especially the data on the Abandoned Baskets page.

Set Up the Clean Up Old Baskets Task

To set up the Clean up old baskets task, click Edit.

The table below provides the description of the Clean up old baskets task settings.

Settings

Description

Run on schedule

Use this option to enable the automatic running of the Clean up old baskets task according to the configured schedule, or disable it to allow only the manual start of the task.

If you enable Run on schedule, you should enter either the interval in minutes when the task should run automatically or the fixed time.

Run interval (in minutes)

Enter the time interval in minutes when the task should run automatically.

Run time

Enter a fixed time when the task should start automatically. Use the time picker to set the desired time. The user’s local time zone is used.

Send e-mail to administrator when task has failed

Use this option to enable or disable e-mail notifications when a scheduled task fails.

If the scheduled task has failed, the webstore administrator receives an e-mail with the name of the task that failed, the name of the webstore, which is useful in case you have several webstores, when the task failed, and the error message. Thanks to this, the webstore administrator can quickly respond to problems with data synchronization.

Number of days to keep old baskets

Enter the number of days to keep old baskets. For example, if you enter 7 days, this means that all baskets that were created more than 7 days ago will be removed.

Maximum archived log files

Enter the maximum number of log files to store. If this number exceeds, the oldest log file will be removed and the new one will be created.