Hi – my client is using a third party fulfilment company, supplying the tracking number and shipping information which then sends out the shipping tracking information automatically when the order is marked as complete – Completed Order email.
It works a treat for all the couriers they use except APC https://apc-overnight.com/, which is not a default UK courier that can be selected. I added the APC courier as suggested by the support notes, but it only adds shipping instructions if we do it manually. Could this courier be added to the default list, so it will trigger before the completed_order email is generated?
This is the code I added to the functions.php file:
add_filter( ‘woocommerce_shipment_tracking_default_provider’, ‘custom_woocommerce_shipment_tracking_default_provider’ );
function custom_woocommerce_shipment_tracking_default_provider( $provider ) {
$provider = ‘APC’;
return $provider;
}
add_filter( ‘wc_shipment_tracking_get_providers’ , ‘wc_shipment_tracking_add_custom_provider’ );
function wc_shipment_tracking_add_custom_provider( $providers ) {
$providers[‘United Kingdom’][‘APC’] = ‘https://apcchoice.apc-overnight.com/?consignmentno=%1$s’; // add a custom provider
return $providers;
}
Many thanks
John
Open
Last updated: June 17, 2025
0 comments
Log in to comment on this feature request.