I am facing an issue where my html code for email templates works perfectly on all platforms except for Microsoft Outlook Desktop. The problem lies in the display of product information that is not showing correctly in Outlook.
Within my code, I have keys that are replaced with customer and email properties, such as:
<tr style="display: {{displayProduct}};">
Which turns into:
<tr style="display: none;">
The issue arises with the product information like productName not displaying properly in Outlook, as shown in this image: https://i.sstatic.net/3TQv5.jpg
I have tried using the mso-hide attribute next to the display none property, but it does not resolve the problem. Even when setting mso-hide:all along with display none, it still does not work.
I have searched for solutions in this entry, but none of them have provided a working solution.
What else can be done to fix this issue?