I have been updating the dispute emails, so with each incoming we can see the customer name and what customer group he/she belongs to, thus distinguishing regular retail from wholesale.
Thank you for your help.
Hi,
Maybe there's a tag for group name, but if so it isn't published in the documentation anywhere I can find. But you could do an "if" statement to achieve what you want. I just checked to see if this would work on invoices, and it does, so I think it should work for your situation.
[%if [@group_id@] eq '1'%] Retail (or whatever name you want to display)
[%elseif [@group_id@] eq '2'%] Friends and Family
[%else [@group_id@] eq '3'%] Wholesale
[%/if%]
Thank you, Anna.
Your solution has helped me get closer. I added in the following
[%if [@group_id@] eq '1'%] Retail [%elseif [@group_id@] eq '2'%] Dropship [%elseif [@group_id@] eq '3'%] Pre-school and Childcare Centre [%elseif [@group_id@] eq '4'%] Social Seller [%elseif [@group_id@] eq '5'%] Staff Friend and Family [%else [@group_id@] eq '6'%] Wholesale [%/if%]
But it only returns Wholesale as the text even though the group id was 5. Did I type something incorrectly? Excited to see it returns a Group Name now.
I think I have now worked it out. I had to change [@group_id@] to [@user:group_id@] then it returned the correct user group name in the email.
Appreciate all your help and advice in finding a fix for my issue.
Kind regards, Melissa Bedhead Hats?
For future reference, the full documentation for those user tags is here:
https://developers.neto.com.au/documentation/neto-designer-documentation/b-se-tag-library/data-tags/value-tags/
They may not all be available in an email template, but most should work.
Oooh, I didn't think about the fact that it would have to have the "user" part for that. So glad you figured it out!
Thank you for the link, Erik. I will stash it away in my help references.
Also, thank you again, Anna. Love seeing community collaboration yielding positive outcomes.