Hello
Could you try this code ?
add_action( 'wpo_order_created', function( $order, $cart_data ) {
global $wpdb;
$cart_id = $order->get_meta('wcal_abandoned_cart_id');
if($cart_id) {
$wpdb->delete( $wpdb->prefix . 'ac_abandoned_cart_history_lite',array( 'id' => $cart_id ) );
}
},10,2);
-
This reply was modified 3 years ago by
algol.plus.
Thread Starter
kadaj
(@aldabogskie)
Thank you for the snippet code. Unfortunately, it didn’t work as expected.
Hello
Could you record video or share the screenshots?
You can submit them as new ticket to https://algolplus.freshdesk.com/
2nd version works stable
add_action('wpo_before_update_cart', function () {
add_filter( 'wcal_block_crawlers', '__return_true' );
});
-
This reply was modified 2 years, 11 months ago by
algol.plus.
Thread Starter
kadaj
(@aldabogskie)
Sorry but still doesn’t work.
Did you put it in functions.php ?