Send reminders on WooCommerce pending orders.
Download from WordPress plugin repository.
You can also get the latest version from any of our release tags.
The average cart abandonment rate is 69.99%, according to Baymard Institute. This is an average of 48 shopping cart abandonment studies, which range from 56% to 81%.
The middle point of just under a 70% cart abandonment rate means that only three out of ten customers who fill their shopping carts actually make it to checkout to complete their purchase.
This plugin helps remind customers of their abandoned cart orders, so they complete their purchases. It's that simple!
This custom hook provides a way to specify the interval between sending reminders to WooCommerce users.
add_filter( 'pbot_reminder_interval', [ $this, 'custom_time_interval' ], 10, 1 );
public function custom_time_interval( $interval ): integer {
if ( $interval < DAY_IN_SECONDS ) {
// Remind every 3 hours.
return 3 * HOUR_IN_SECONDS;
}
return $interval;
}Parameters
- interval
{integer}The time interval.
This custom hook provides a simple way to filter the text client to use to send messages to users with pending orders.
add_filter( 'pbot_text_client', [ $this, 'custom_text_client' ], 10, 1 );
public function custom_text_client( $client ): Client {
if ( $client instanceOf Twilio ) {
return new CustomTextClient();
}
return $client;
}Parameters
- client
{Client}By default this will be an instance of the Twilio client.
This custom hook provides a way for users to handle caught exceptions from failed send actions.
add_action( 'pbot_send_error', [ $this, 'custom_send_error' ], 10, 1 );
public function custom_send_error( $message ): void {
$post = wp_insert_post(
[
'post_type' => 'pbot_send_error',
'post_title' => sanitize_text_field( $message ),
]
);
}Parameters
- message
{string}By default, this will be the error message from the caught exception.