autoship_orders_notice_message

Can be used to adjust / filter the notification being displayed to a customer, The filter takes the current notice/failure reason returned from QPilot and the Autoship Order as parameters. The filter could be used to convert QPilot's default failure notifications text to a custom notification.

Example

 
// create a failure validator for Scheduled Order #24096
function xx_customize_single_order_notice($notice, $order_id){
    $order_id == 24096 ? 'Failure Verified!' : $notice;
}
add_filter('autoship_orders_notice_message', 'xx_customize_single_order_notice', 10, 2);

Still need help? Contact Us Contact Us