Hello,
I want to add a if condition on the 1:N entity. For example If a customer has 10 orders than place the separate <p> section if he/she has less that 10 orders than place the following <p> block in email template. I was actually struggling getting the number of rows.
Can anyone help me with that ?
{{#if (gte contact.cra04_orders_contact_cra04_contactorders.Count 10)}}
<div class="col-md-12 col-lg-12 col-sm-12">
<p> It seems like that you haven't placed any order yet. If you are facing any issue than please do let us know. You can also click on the below link to report an issue. </p>
</div>
{{/if}}
Right now I am using this code but its wrong and not working. What is the right way to do that ?
Thanks,
Omer