Woocommerce order tracking
-
Hi guys. Just to let you know I’ve managed to integrate this with Woocommerce really easily. Tracking now shows on the View Order page in the customers account.
My website offers same day grocery deliveries and I wanted a way for my customer to track where their delivery is.
Instructions:
First, you’ll need to create a custom order status for “Out for delivery”. I used Booster Tools for mine. This will ensure customers can only track you when the order’s out for delivery; not before and not after.Next, I added this code to my templates child theme. File is woocommerce/myaccount/view-order.php
<?php
if ($order->status == ‘out-for-delivery’) {
echo do_shortcode(“[tsmap opacity=0.0 live=true track=4 markers=end]”);
}
else {
echo “”;
}
?>Now, whenever I’m on the way to deliver a customers order, I change the order status to “Out for delivery”, the customer gets an email to let them know it’s out for delivery along with a link to the view-order page (I used automatewoo), they can then track their order. Once delivered, I change the order status to “Completed” and they can no longer track me.
Great plugin!
- The topic ‘Woocommerce order tracking’ is closed to new replies.