Support » Plugin: WooCommerce Cart Abandonment Recovery » How to edit abandoned cart time filter

  • Resolved spinzz

    (@waterprism)


    Hi. You have the following filter for changing the default cart abandoned time.

    // This Filter will change Cron Trigger Time ( Default 15 Min. ) 
    add_filter( 'woo_ca_update_order_cron_interval', 'update_cron_trigger_time', 10 );
    function update_cron_trigger_time($time_in_minutes){
        $time_in_minutes = 30;
        return $time_in_minutes;
    } 

    What is it that actually must be changed there? There’s update_cron_trigger_time and below that $time_in_minutes. Which needs to be changed? So let’s say I wanted to make the default cart abandoned time 60 minutes rather than 15 minutes, what would I actually put in the above code?

    And also, does this code go in functions.php?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support CartFlows Team

    (@cartflows)

    Hello @waterprism,

    Thank you for reaching out to us.

    You just need to change the number 30 (in a minute ) i.e. It will capture the abandoned cart after every 30 min.

    In your case, you need to change the number to 60.

    The above code will go to the function.php file of the child theme.

    Let us know if you have any questions.

    Thank You!

    Thread Starter spinzz

    (@waterprism)

    Okay. Thanks.

    Plugin Support CartFlows Team

    (@cartflows)

    Hello @waterprism,

    Most welcome..!

    If you have any questions, please feel free to open a new thread.

    Thank You!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to edit abandoned cart time filter’ is closed to new replies.