Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author algol.plus

    (@algolplus)

    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 1 year, 5 months ago by algol.plus.
    Thread Starter kadaj

    (@aldabogskie)

    Thank you for the snippet code. Unfortunately, it didn’t work as expected.

    Plugin Author algol.plus

    (@algolplus)

    Hello

    Could you record video or share the screenshots?
    You can submit them as new ticket to https://algolplus.freshdesk.com/

    Plugin Author algol.plus

    (@algolplus)

    2nd version works stable

    add_action('wpo_before_update_cart', function () {
    add_filter( 'wcal_block_crawlers', '__return_true' );
    });

    • This reply was modified 1 year, 5 months ago by algol.plus.
    Thread Starter kadaj

    (@aldabogskie)

    Sorry but still doesn’t work.

    Plugin Author algol.plus

    (@algolplus)

    Did you put it in functions.php ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Abandoned carts’ is closed to new replies.