Hi guys!
I had the same problem – order records from the table ‘wp_cartflows_ca_cart_abandonment’ has been deleted when wp_cron has started Cartflows_Ca_Cart_Abandonment->update_order_status().
I discovered it was because programm find the same product in earlier orders!
I temporary fix it in class ‘Cartflows_Ca_Cart_Abandonment’ and replace ‘-30 days’ with ‘$email_data->time’
….
$orders = wc_get_orders(
array(
'billing_email' => $email_data->email,
'status' => array( 'processing', 'completed' ),
'date_after' => gmdate(
'Y-m-d h:i:s',
strtotime($email_data->time)
//strtotime( '-30 days' )
),
)
);
….
Please, would you like to fix it?
-
This reply was modified 4 years ago by ak2012sur.