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
{% 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
Was this helpful?