I'd like to show or hide some text in New Order email templates based on the product type.
If it's a Downloadable product, I need to show download instructions; otherwise don't show them.
In the email template, how can I get the product type?
Or is this the wrong way to go about this?
Hi @MacEwen
You can get product type with the below code:
$item->getProductType();
You can check the code with the below solution URL for sending order email flow :
You can custom your code to get ProductType and update your text accordingly.