# Configuration

# E-Mail Templates

To ensure that the data entered by your customers is also displayed in the order confirmation e-mail, simply add the following code to the "Order confirmation" mail template:

# Text / Plain

{% if order.extensions and order.extensions.netiOrderFieldsOrderAttribute %}
{% for orderField in order.extensions.netiOrderFieldsOrderAttribute %}
{{ orderField.label }}:
{% for value in orderField.netiOrderAttributeValues %}
{% if orderField.type is same as('select') %}
{{ value.valueLabel }}
{% else %}
{{ value.value }}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
1
2
3
4
5
6
7
8
9
10
11
12

# HTML

{% if order.extensions and order.extensions.netiOrderFieldsOrderAttribute %}
    {% for orderField in order.extensions.netiOrderFieldsOrderAttribute %}
        <p>{{ orderField.label }}:
            {% for value in orderField.netiOrderAttributeValues %}
                {% if orderField.type is same as('select') %}
                    {{ value.valueLabel }}
                {% else %}
                    {{ value.value }}
                {% endif %}
            {% endfor %}
        </p>
    {% endfor %}
{% endif %}
1
2
3
4
5
6
7
8
9
10
11
12
13

# Export data

In order for the entered data to be exported, you must first duplicate the export profile for Shopware orders. After that you need to create a field called netiOrderFields and just save the profile. Now you can use the duplicate to export the orders with the order fields.