Hi @cycloneuk,
That’s the cause – your template override. We add the tracking widget to the email using the woocommerce_email_before_order_table hook, and your custom template is missing it, so there’s nothing for us to hook into.
Just add this line to your overridden email template where you want the tracking to appear:
Once that hook is present in your template, the tracking will show in the email again.
Best Regards,
Gaurav
Copied that to that template and it’s still not inserting the tracking. The default customer-completed-order template doesn’t have the woocommerce_email_before_order_table hook either?
-
This reply was modified 3 weeks ago by
cycloneuk.
I managed to get it to show with a workaround snippet. I’m using Royal Mail Click & Drop. When I manifest the day’s orders, it marks them as dispatched and adds an order note containing the tracking number.
I’m also using the suppression snippet to stop the Completed Order email from being sent if the order doesn’t have any tracking information.
Will AST check the order notes when the tracking is added and then trigger another Completed Order email with the tracking number?
The documentation isn’t the best, and it seems to suggest that it will, but it isn’t very clear.
Also, to prevent customers from receiving an order note email when the tracking is added, I’m guessing I need to disable that email notification? This isn’t really mentioned in the documentation.
Hi @cycloneuk,
One key thing first: the Royal Mail Click & Drop integration – where AST reads the tracking from the order note and adds it to the order – is only available in AST PRO, not the free version.
So on the free version, AST won’t automatically pick up the tracking from the Click & Drop note, which is why the flow you’re describing (tracking added, then the Completed email with tracking) won’t work as expected. To get that automatic tracking-from-Click-&-Drop behaviour, you’d need AST PRO.
On the order-note email: yes, to stop customers getting an email when the note is added, disable that note notification (or add the tracking as a private note instead).
If you’d like, I can explain how the Click & Drop integration works in PRO so you can see if it fits before deciding.
Best Regards,
Gaurav