Hello Sir,
- “Update Tracking” button is always visible in order list for “Manual” provider. Please make sure that shipping provider for the specific order is set as “Manual”. See this screenshot: https://drive.google.com/file/d/1ENXVHPZNGM_NR0UKXU_n0gR3XAmJBBOe/view?usp=sharing
- For Xpressbees shipping provider, you don’t need to update the awb number manually as it’s automatically synced from xpressbees as soon as the order is scheduled for pickup. For auto sync to work, the order number on your website should match with the order number on xpressbees, that’s it.
- Sure you can send custom sms to send tracking updates. Here’s a code snippet for sending order updates using our sms service (https://smsapi.bitss.tech) and (https://quickengage.bitss.in/):
add_action( 'bt_shipment_status_changed', 'bt_quickengage_messaging_api', 10, 3 );
add_action( 'woocommerce_order_status_processing', 'bt_quickengage_messaging_order', 10, 1 );
function bt_quickengage_messaging_order( $order_id) {
bt_quickengage_messaging_api($order_id,null,null);
}
function bt_quickengage_messaging_api( $order_id,$shipment_obj,$shipment_obj_old) {
$order = wc_get_order( $order_id );
$blog_title = get_bloginfo( 'name' );
$site_url=get_site_url();
$body = array(
"order" => $order->get_data(),
"shipment_current" => $shipment_obj,
"shipment_old" => $shipment_obj_old,
"store_name"=>$blog_title,
"store_url"=>$site_url
);
$auth_token="<Your auth token>";
$args = array(
'body' => $body,
'timeout' => 0.01,
'blocking' => false,
'sslverify' => false,
'headers' => array(
'Authorization' => 'Bearer ' . $auth_token,
'Content-Type: multipart/form-data'
),
);
$url = "https://quickengage.bitss.in/trigger/message";
$response = wp_remote_post( $url,$args ); //its a non-blocking call. so website's speed is not effected.
}
This code snippet can be added to your website using your custom theme or the “Code Shippets” plugin.
You need to signup for our sms service to get your auth token and start sending sms right away. Please let me know if you would like to try it so we’ll create your account with free 100 sms credits.
Best Regards,
Amit