# E-Mail configuration
# Order confirmation
The block mentioned below can be inserted anywhere in the "Order confirmation" mail template.
# HTML
{% if order.extensions.netiStorePickupSelectedStore %}
{% set longestPickupTime = 0 %}
{% for lineItem in order.lineItems %}
{% if lineItem.payload.netiNextStorePickupDistribution.longestDeliveryTime > longestPickupTime %}
{% set longestPickupTime = lineItem.payload.netiNextStorePickupDistribution.longestDeliveryTime %}
{% endif %}
{% endfor %}
<strong>You can collect your goods here after a procurement time of {{ longestPickupTime }} hour/s:</strong><br>
{% set store = order.extensions.netiStorePickupSelectedStore %}
{{ store.label }}<br/>
{{ store.street }} {{ store.streetNumber }}<br>
{{ store.zipCode }} {{ store.city }}<br>
{{ store.country.name }}<br>
{% if store.phone %}
Phone: {{ store.phone }}<br>
{% endif %}
{% if store.fax %}
Fax: {{ store.fax }}<br>
{% endif %}
{% if store.email %}
Email: <a href="mailto:{{ store.email }}">{{ store.email }}</a><br>
{% endif %}
{% if store.url %}
<a href="{{ store.url }}" target="_blank" align="top">{{ store.url }}</a>
{% endif %}
<br><br>
{% endif %}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Plain
{% if order.extensions.netiStorePickupSelectedStore %}
{% set longestPickupTime = 0 %}
{% for lineItem in order.lineItems %}
{% if lineItem.payload.netiNextStorePickupDistribution.longestDeliveryTime > longestPickupTime %}
{% set longestPickupTime = lineItem.payload.netiNextStorePickupDistribution.longestDeliveryTime %}
{% endif %}
{% endfor %}
You can collect your goods here after a procurement time of {{ longestPickupTime }} hour/s:
{% set store = order.extensions.netiStorePickupSelectedStore %}
{{ store.label }}
{{ store.street }} {{ store.streetNumber }}
{{ store.zipCode }} {{ store.city }}
{{ store.country.name }}
{% if store.phone %}Phone: {{ store.phone }}{% endif %}
{% if store.fax %}Fax: {{ store.fax }}{% endif %}
{% if store.email %}Email: {{ store.email }}{% endif %}
{% if store.url %}{{ store.url }}{% endif %}
{% endif %}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Hide shipping address
In order not to display the shipping address for a pick-up order, the shipping address block should be provided with the following condition:
{% if not order.extensions.netiStorePickupSelectedStore %}
<strong>Shipping address:</strong>
[...]
{% endif %}
1
2
3
4
2
3
4
# Pick-up time
As of plug-in version 4.1.0, the pick-up time can also be displayed in the order confirmation and in the notification to the store. The pick-up time can be output via the following code:
# Order confirmation
{{ order.extensions.netiStorePickupSelectedTime.pickUpDate||format_datetime('medium', 'short', locale='de-DE') }}
1
# Notification to the store
{{ order.extensions.netiStorePickupOrderMailExtension.pickUpDate||format_datetime('medium', 'short', locale='de-DE') }}
1