Add additional data to the order confirmation mail

The B2Bsellers Suite provides some additional data in the orders, here you can learn how to customize the order confirmation template to add the desired data.

Event participant registration

Each event participant line item has additional data about the participant and the event itself.

Here is an example with which you can output the data for each line item:

{% if nestedItem.extensions.eventParticipant is defined %}
    {% set eventParticipant = nestedItem.extensions.eventParticipant %}
    
    <div>
        <b>Participant:</b> {{ eventParticipant.firstName }} {{ eventParticipant.lastName }}<br />
        <b>E-Mail:</b> {{ eventParticipant.email }}<br />
        {% if eventParticipant.event is defined %}
            <b>Event:</b> {{ eventParticipant.event.translated.name }}<br />
            <b>Date:</b> {{ eventParticipant.event.startDate|format_date('short', locale='en-GB') }} - {{ eventParticipant.event.endDate|format_date('short', locale='en-GB') }}<br />
            {% if eventParticipant.event.eventLocation is defined %}
                <b>Location:</b> {{ eventParticipant.event.eventLocation.translated.name }}
            {% endif %}
        {% endif %}
    </div>
{% endif %}

Last updated