I am trying to show the list of items selected by user in the email response.
Here is my sample short codes in email template:
[if 179 equals="1"] * [178] : [192] [/if 179]
[if 301 equals="1"] * [183] : [272] [/if 301]
[if 278 equals="1"] * [277] : [279] [/if 278]
[if 318 equals="1"] * [317] : [289] [/if 318]
[if 331 equals="1"] * [330] : [332] [/if 331]
My problem is, it leaves empty space in email wherever the condition does not match.
Here is the output:
* Basketball Male : ₹ 15,000.00
* Female : ₹ 15,000.00
* Bowling Team : ₹ 7,000.00
Can experts guide on how to solve this issue?
I see two ways to solve this. I prefer using the HTML strategy that the default-html message employs and use tables. To do this, clear out what you have in the message body, click the ..., go to the Advanced tab, and choose Default HTML. Then you can customize it as you wish. A row is only displayed if there's a value for it. The other solution is to add CSS to the email body to remove the margins from the paragraph tags. Something like this: p {margin:0}
Please login or Register to submit your answer