The WooCommerce Email Template Customizer by VillaTheme uses its own email rendering engine, which bypasses the standard WooCommerce email hooks that AST PRO uses by default. To display tracking info inside VillaTheme-customized emails, add the woocommerce_email_before_order_table hook block to your template manually.
Requirements
- AST PRO installed, active, and licence activated.
- WooCommerce Email Template Customizer by VillaTheme installed and active.
How to add tracking to VillaTheme email templates
- 1Go to WooCommerce → Email Templates in your WordPress dashboard.
- 2Select the Completed Order (or Shipped / Partially Shipped) template you want to customise.
- 3In the Editor tab, open the Components panel on the left and find the WC Hook block.
- 4Drag the WC Hook block into your email layout at the position where you want tracking info to appear — above the order items table is recommended.
- 5Click the WC Hook block to open its settings. In the hook dropdown, select
woocommerce_email_before_order_table. - 6Save the template.

Result
After saving, the Completed / Shipped order email will include the AST PRO tracking widget — carrier name, tracking number, tracking link, and shipped date — at the position you placed the WC Hook block.
To customise the widget’s appearance (colors, button style, header text), use the AST PRO Email Customizer.