Sometimes you want to add elements in your template but you not always want to show them, to hide elements of the template when a condition is met (such like the order was refunded or it has an specific product) do the following:
1.- Select the field in the template designer and click on conditions
2.- Configure the condition that you want to use, in the example ...
By default all the pdf templates that you created will be shown in the orders table of woocommerce:
This is generally perfect but, things could get tricky when you create conditional templates, by default all the templates are going to be shown even if the condition that you configure doesn’t match the current order
If you want to send an specific type of invoice only when a condition is met (for example an specific product or product category was purchased). Please do the following: