Hello,
We have reworked this mechanism in our recent update so please update the theme to the latest version first – 8.1.2.
Testing Instructions:
1. Enable the “Enable cart recovery” option in Theme Settings → Shop → Abandoned Cart.
2. Once this option is enabled, all carts will be saved as a post type wd_abandoned_cart
. A cart will only appear on the Products → Abandoned Carts page after it becomes abandoned.
3. Set the Cart timeout to 1 minute. This option determines how long after a customer leaves the cart it should be considered abandoned.
4. The emails are sent via the woodmart_abandoned_cart_cron
cron job, which runs every 15 minutes and performs the following four actions:
– Deletes abandoned carts that exceed the Cart cleanup lifespan.
– Changes the status of open
carts to abandoned
if they were created before the Cart timeout
threshold.
– Sends emails to 20
customers whose carts have abandoned
status. This number can be adjusted using the filter woodmart_send_abandoned_cart_email_limited
.
– Deletes used and expired coupons if the corresponding options are enabled in Theme Settings.
To change the cron job schedule, use the filter woodmart_schedule_abandoned_cart_cron
.
For testing, you can use the Advanced Cron Manager
plugin (https://wordpress.org/plugins/advanced-cron-manager/). After activating it, go to Tools → Cron Manager
, search for the cron job by name, and click “Execute now”.