Support » Plugin: Trackserver » 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!

Viewing 1 replies (of 1 total)
  • That’s awesome! Not sure if you have multiple vehicles to track, but I was wondering if you were to have multiple (such as a pizza store) do you know how you would select which phone to track?

Viewing 1 replies (of 1 total)
  • The topic ‘Woocommerce order tracking’ is closed to new replies.