Register the template filename so it appears as a product-template option. Place the matching template file in your theme’s /automatewoo/email/ directory.
Developer note:
Add custom PHP in a small custom plugin or child theme, and test it on a staging site before production. This example requires ongoing maintenance when extension APIs change.
functions.php
<?php
add_filter( 'automatewoo/variables/product_templates', 'my_store_automatewoo_product_templates' );
/**
* Register custom product display templates.
*
* @param array $templates Registered templates.
* @return array
*/
function my_store_automatewoo_product_templates( $templates ) {
$templates['custom-product-template.php'] = 'Custom product template';
return $templates;
}