Support tip: How to structure the Zendesk email template to use custom HTML layouts for each of your Multiple Brands

43 Kommentare

  • Dave Dyson
    Hi Nicky,
     
    Thanks so much for posting this workaround! For visibility to our product team and to allow others to add their upvotes and comments, would you mind posting to our Feedback - Help Center (Guide) topic, using this template? Your workaround would be very useful, so our team can see the level of work required to get around the current product limitations. Thanks!
    0
  • Chris Gregory

    Andrew Soderberg

    Thanks for all of this documentation. We are excited by the idea and have a proof of concept in place but there is one complication holding us up:

    In our instance we have one department based brand that works with several of our brand brands. Is there a way to create a sub when statement that looks at the group of the ticket?

    i.e.

    {% when 'This email is a service from Brand.' %}

             {% when 'This email is a service from Group.' %}

             Brand

            {% else %}

            Brand

    {% when 'This email is a service from Brand.' %}

    Brand

    0
  • Greg Katechis
    Zendesk Developer Advocacy

    Hi Chris! I'm not Andrew and definitely not an expert in liquid markup, but I took a look at their documentation and you may be able to do this in a slightly different way. Instead of nesting the `when`, you could use multiple conditions for your `when` to accomplish this. For example:

    {% when 'email from brand one' and 'email from group 1' %}

    Brand/group

    {% when 'email from brand one' %}

    Brand

    Let me know if this works for you!

    1
  • Reports

    Hi there,

    Were currently working on our email template for two brands.
    We worked on the code and when we tested it (using https://email2go.io/), it was all good. But when we tried to paste it on the "email template" section on the Admin Center and used a test ticket everything gets messed up. I don't know why. 

    The first photo is what it should look like. The second one is what we got.

    Please help.

     

     

     

    0
  • Cheeny Aban
    Zendesk Customer Care
    Hi Regit!

    I would suggest that you check Customizing your templates for email notifications for guidance in customizing your email template. 

    I hope that helps!
    0
  • Barbara Oesterling

    Thanks for the documentation. We've set up our template as we believe correctly, however, it doesn't work AT ALL. E-Mails won't show any logos, footers, etc. Would you be so kind to take a look? I anonymized it, Brands 1-4 serve as placeholders, would be the exact names we use in Zendesk.

    <!doctype html>
    <html>

    <head>
        <meta charset="UTF-8">
        <style>
            * {
                box-sizing: border-box;
                -moz-box-sizing: border-box;
            }

            html,
            body {
                background: #eeeeee;
                font-family: 'Open Sans', sans-serif, Helvetica, Arial;
            }

            img {
                max-width: 100%;
            }

            a {
                color: black; text-decoration: none;
            }

            a:hover {
                color: #a81326;
            }
        </style>
    </head>

    {% case footer %}

    {% when 'Brand 1' %}

    <body style="background: #eeeeee; padding: 0 10px; margin: 0; font-family: 'Open Sans', sans-serif, Helvetica, Arial;">
        <table width="800px" cellpadding="0" cellspacing="0" bgcolor="FFFFFF" style="background: #ffffff; max-width: 800px !important; margin: 0 auto; background: #ffffff;">
            <tr>
                <td style="text-align: center;  padding: 5px 100px 0;">
                    <p href="#" style="color: #b7b7b7; font-size: 11px; letter-spacing: 0.2px;">{{delimiter}}</a>
                </td>
            </tr>
            <tr>
                <td width="200" style="width: 200px; text-align: left;  padding: 50px 100px 0;">
                    <img src="https://assets.prod.XXX.de/assets/shop/images/email/logo.0685b444.png" width="200"/>
                </td>
            </tr>
            <tr>
                <td style="text-align: left; padding: 20px 100px 50px;">
                    <p style="font-family: Arial, sans-serif; font-size: 15px; line-height: 1.6; letter-spacing: 0.5px; text-align: left;">
                        {{content}}
                    </p>
                </td>
            </tr>
        </table>
    </body>

    {% when 'Brand 2' %}

    <body style="background: #eeeeee; padding: 0 10px; margin: 0; font-family: 'Open Sans', sans-serif, Helvetica, Arial;">
        <table width="800px" cellpadding="0" cellspacing="0" bgcolor="FFFFFF" style="background: #ffffff; max-width: 800px !important; margin: 0 auto; background: #ffffff;">
            <tr>
                <td style="text-align: center;  padding: 5px 100px 0;">
                    <p href="#" style="color: #b7b7b7; font-size: 11px; letter-spacing: 0.2px;">{{delimiter}}</a>
                </td>
            </tr>
            <tr>
                <td width="200" style="width: 200px; text-align: left;  padding: 50px 100px 0;">
                    <img src="https://assets.prod.XXX.de/assets/shop/images/email/logo.0685b444.png" width="200"/>
                </td>
            </tr>
            <tr>
                <td style="text-align: left; padding: 20px 100px 50px;">
                    <p style="font-family: Arial, sans-serif; font-size: 15px; line-height: 1.6; letter-spacing: 0.5px; text-align: left;">
                        {{content}}
                    </p>
                </td>
            </tr>
        </table>
    </body>

    {% when 'Brand 3' %}

    <body style="background: #eeeeee; padding: 0 10px; margin: 0; font-family: 'Open Sans', sans-serif, Helvetica, Arial;">
        <table width="800px" cellpadding="0" cellspacing="0" bgcolor="FFFFFF" style="background: #ffffff; max-width: 800px !important; margin: 0 auto; background: #ffffff;">
            <tr>
                <td style="text-align: center;  padding: 5px 100px 0;">
                    <p href="#" style="color: #b7b7b7; font-size: 11px; letter-spacing: 0.2px;">{{delimiter}}</a>
                </td>
            </tr>
            <tr>
                <td width="200" style="width: 200px; text-align: left;  padding: 50px 100px 0;">
                    <img src="https://assets.prod.XXX.de/assets/shop/images/email/logo.0685b444.png" width="200"/>
                </td>
            </tr>
            <tr>
                <td style="text-align: left; padding: 20px 100px 50px;">
                    <p style="font-family: Arial, sans-serif; font-size: 15px; line-height: 1.6; letter-spacing: 0.5px; text-align: left;">
                        {{content}}
                    </p>
                </td>
            </tr>
        </table>
    </body>

    {% when 'Brand 4' %}

    <body style="background: #eeeeee; padding: 0 10px; margin: 0; font-family: 'Open Sans', sans-serif, Helvetica, Arial;">
        <table width="800px" cellpadding="0" cellspacing="0" bgcolor="FFFFFF" style="background: #ffffff; max-width: 800px !important; margin: 0 auto; background: #ffffff;">
            <tr>
                <td style="text-align: center;  padding: 5px 100px 0;">
                    <p href="#" style="color: #b7b7b7; font-size: 11px; letter-spacing: 0.2px;">{{delimiter}}</a>
                </td>
            </tr>
            <tr>
                <td width="200" style="width: 200px; text-align: left;  padding: 50px 100px 0;">
                    <img src="Z:\First & Second Level\EMC 2\CCC\Help Center\XXX\XXX_Logo_OHNE_WUERFEL_CMYK_Schwarz.jpg" width="200"/>
                </td>
            </tr>
            <tr>
                <td style="text-align: left; padding: 20px 100px 50px;">
                    <p style="font-family: Arial, sans-serif; font-size: 15px; line-height: 1.6; letter-spacing: 0.5px; text-align: left;">
                        {{content}}
                    </p>
                </td>
            </tr>
        </table>
    </body>

    {% else %}

     <br />
     
    {% endcase %}


    {{content}}

    {% case footer %}

    {% when 'Brand 1' %}

    {{footer}}
    <br />  
    <p>
    <tr>
                <td style="border-bottom: 1px solid #b0b0b0;">
                    
                </td>
            </tr>
        </table>
        <table width="800px" cellpadding="0" cellspacing="0" bgcolor="f5f5f5" style="background: #f5f5f5; max-width: 800px !important; margin: 0 auto; background: #f5f5f5;">
            <tr>
                <td valign="top" style="text-align: left; padding: 20px 100px;">
                    <p style="font-family: Arial, sans-serif; font-size: 10px; line-height: 1.3; letter-spacing: 0.5px; text-align: left; color: #38403e">
                            © XXX<br />
                            XXX<br /><br />
                            
                            USt-ID: DE XXX
                    </p>
                </td>
            </tr>
    <p>
     </body>
    </html>

    {% when 'Brand 2' %}

    {{footer}}
    <br />  
    <p>
    <tr>
                <td style="border-bottom: 1px solid #b0b0b0;">
                    
                </td>
            </tr>
        </table>
        <table width="800px" cellpadding="0" cellspacing="0" bgcolor="f5f5f5" style="background: #f5f5f5; max-width: 800px !important; margin: 0 auto; background: #f5f5f5;">
            <tr>
                <td valign="top" style="text-align: left; padding: 20px 100px;">
                    <p style="font-family: Arial, sans-serif; font-size: 10px; line-height: 1.3; letter-spacing: 0.5px; text-align: left; color: #38403e">
                            © XXX<br />
                            XXX<br /><br />
                            
                            VAT-EU: DE XXX
                    </p>
                </td>
            </tr>
    <p>
     </body>
    </html>

    {% when 'Brand 3' %}

    {{footer}}
    <br />  
    <p>
    <tr>
                <td style="border-bottom: 1px solid #b0b0b0;">
                    
                </td>
            </tr>
        </table>
        <table width="800px" cellpadding="0" cellspacing="0" bgcolor="f5f5f5" style="background: #f5f5f5; max-width: 800px !important; margin: 0 auto; background: #f5f5f5;">
            <tr>
                <td valign="top" style="text-align: left; padding: 20px 100px;">
                    <p style="font-family: Arial, sans-serif; font-size: 10px; line-height: 1.3; letter-spacing: 0.5px; text-align: left; color: #38403e">
                            © XXX<br />
                            XXX<br /><br />
                            
                            USt-ID: DE XXX
                    </p>
                </td>
            </tr>
    <p>
     </body>
    </html>

    {% when 'Brand 4' %}

    {{footer}}
    <br />
    <p>
    <tr>
                <td style="border-bottom: 1px solid #b0b0b0;">
                    
                </td>
            </tr>
        </table>
        <table width="800px" cellpadding="0" cellspacing="0" bgcolor="f5f5f5" style="background: #f5f5f5; max-width: 800px !important; margin: 0 auto; background: #f5f5f5;">
            <tr>
                <td valign="top" style="text-align: left; padding: 20px 100px;">
                    <p style="font-family: Arial, sans-serif; font-size: 10px; line-height: 1.3; letter-spacing: 0.5px; text-align: left; color: #38403e">
                            © XXX<br />
                            XXX<br /><br />
                            
                            T.V.A. LU XXX Numéro d´immatriculation XXX
                    </p>
                </td>
            </tr> </p>
    </body>
    </html>

    {% else %}

    {{footer}} 
    <br />
    </body>
    </html>

    {% endcase %}

    0
  • Stephen

    Hi,

    I think it is great to see so many people engage and try to set up the email template to meet multibrand needs, but I think this points to the overall difficulty in doing this and that the current email template building expereince is extremely lacklustre.

    It would be far better to follow suit with someone like Hubspot, where you have a UI builder that can be used to build an email template (with the option of working within markdown if you are so inclined). This would make the experience far more pleasent and easier to work with.

    In addition, when an account has multibrand functionality, it would make sense to be able to configure an individual email template per brand. This template should also apply to those sent via the Help Centre, if you Follow an article.

    At the moment, the email template experience is just mediocre compared with the competition on the market (including some cheaper alternatives).

    0
  • Ayelet Haiventriger

    Hi

    I am trying to use condition base on the brand in the "Email template",

    so I took one code script from one of the examples in this reponses, and it is not working. Of course I created the brands as descried in the "WHEN" statement. 

    Can someone explain to me why the code is not working

    This is what I tried to run:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
    table td {
    border-collapse: collapse;
    }
    </style>
    </head>

    <body style="width: 100%!important; margin: 0; padding: 0;">
    <div style="padding: 10px ; line-height: 18px; font-family: 'Lucida Grande',Verdana,Arial,sans-serif; font-size: 12px; color:#444444;">
    <div style="color: #b5b5b5;">{{delimiter}}</div>

    {{content}}

    {% case footer %}
    {% when 'This email is a service from Workforce Support.' %}

    <div style="color: #9e9e9e; margin: 10px 0 14px 0; padding-top: 10px; border-top: 1px solid #eeeeee;">
    <p>This email is a service delivered by <a href="https://support.getworkforce.com" style="color:black" target="_new">Workforce Consultants</a>.</p>
    </div>
    </div>
    </body>
    </html>

    {% when 'This email is a service from Payworks Support.' %}

    <div style="color: #9e9e9e; margin: 10px 0 14px 0; padding-top: 10px; border-top: 1px solid #eeeeee;">
    <p>This email is a service delivered by <a href="https://support.gopayworks.com" style="color:black" target="_new">Payworks Support</a>.</p>
    </div>
    </div>
    </body>
    </html>

    {% else %}

    <div style="color: #9e9e9e; margin: 10px 0 14px 0; padding-top: 10px; border-top: 1px solid #eeeeee;">
    {{footer}}
    <p> Delivered by Zendesk.</p>
    </div>
    </div>
    </body>
    </html>

    {% endcase %}
    0
  • Christopher Kennedy
    Zendesk Developer Advocacy
    Hi Ayelet,
     
    Are you noticing that the else condition is always true?  Or are you not seeing footer content in the notification at all?
    0
  • Ayelet Haiventriger

    Hi Christopher,

    It seems like the code is skipping "when" condition and jump to the "else" condition - even thought the ticket's brand is belong to "Payworks Support".

    I do see the footer (as it supposed to be expose due to  "else" condition)

    0
  • Christopher Kennedy
    Zendesk Developer Advocacy
    Hi Ayelet,
     
    Thanks for confirming.  This could happen if the name used in the condition isn't an exact match to the actual brand name.  Can you go to brand settings and copy the text from the Brand Name field to ensure that the names within the conditions match the stored brand name?
    0
  • Deniz Gøgenur

    Thanks for this great tip! I was just testing, when I realised that in the border between Denmark and Germany, some might use a German language while writing to our danish support and others might use danish language and (by mistake) write to our German support - the text "This email is a service" seem to be translated by default? 

    Is it possible to force a language in that string? We are not using it anywhere else.

    Thanks!

    0
  • Peter Hochstrasser

    Hi Deniz Gøgenur

    No, this is not translated. This is sent by the back end, and the back end has no means to know for sure what language the user actually has selected. Thus, this text is sent in any language you want as long as it's english.

    This allows this template to catch the brand specific footer text and derive from that which brand the current mail is concerning.

    There several entire mails like this, but these are absolutely non-configurable as they are sent out without using a mail template. This is why I made my feature request 

    https://support.zendesk.com/hc/en-us/community/posts/4408868241434-Feature-Request-Brandable-Welcome-Verification-and-Change-Password-Mails. 

    Please support it if you like it.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk