Contents

    Customising email templates

    Your task/initial situation

    You would like to customise the emails sent to your customers via JTL-Shop to suit your online shop.

    Opening the template overview

    1. In the back end of JTL-Shop, go to Email > Templates to open the overview of the Email templates.

    Here you can see all emails that can be sent automatically by JTL-Shop. Via Request test email (letter icon), you can send a test email for every template to yourself.

    Adjusting a template

    Attention: For security reasons, it is no longer permitted to execute PHP code in email templates as of JTL-Shop 5. If you want to use customised newsletter templates from JTL-Shop 4, please make sure to remove the executable code from these templates to avoid errors.

    To display the terms and conditions, cancellation policy, and legal notice in your JTL-Shop 5, you must insert the following placeholders into your template. We recommend using the footer because it allows you to activate the contents in all emails.
    You still need to activate the contents, e.g. the attachment of the terms and conditions, in the respective email template.

    [AKZ][LEGAL_DATA]

    Making the general settings

    1. Click the Edit button at the end of the template line. The page Editing the template opens.
    1. First, use the Send email setting to decide whether this type of email should be sent automatically by JTL-Shop.
    2. Then specify the email address from which this type of email is to be sent, the sender name and to whom a copy is to be sent. You can enter several recipients separated by a semicolon. If you leave these fields blank, the master email address will be used. Further reading: Setting up emails.
    Please note: We recommend that you set up a separate email account to which all order confirmation emails are sent. This way, if you need to import a backup of your shop database, you can reconstruct all orders since the backup and create them as quick orders in JTL-Wawi.
    1. You can also decide which documents should be automatically attached to the email. You can have your legal disclosure, the terms and conditions, the withdrawal policy, a sample withdrawal form and/or your data privacy notice attached to an email. These are added as text directly after the email text. To have the text displayed, the placeholder [LEGAL_DATA] must exist in the email template as the footer.

    Send this email type as: Set here the format in which the email is to be sent. You can have the email sent in both HTML and text format (Text/HTML). In this case, both templates are used (email type: Multipart MIME) and your client’s email client decides which version to display. Alternatively, you can also send text-only emails(Text). In this case, only the text email is always displayed. If you choose the Text option, you do not need to maintain the Content (HTML) field below.

    Creating the email content

    For each language you maintain for JTL-Shop, you have the option to create a template. You can use the placeholders for this. A list of possible variables can be found under Variables for email templates.

    1. Under Subject, specify what the subject of the email should be.
    2. Use the fields under Content (HTML) and Content (Text) respectively to create the content of your email. You can usually use the existing drafts and adapt them to your needs.
    Please note: The content of the two fields Content (HTML) and Content (Text) can be completely different. We recommend, however, that both emails have similar content.
    1. Under PDF file 1–3, you can also specify attachments for the email type that are always sent along. This is useful, for example, if you always want to attach your current catalogue to a certain type of email.
    1. Click on Save to save the edited email template. JTL Shop will use the new variant you have created from now on.