How to set the addresses to the support?
You can define which email addresses should receive support notifications.
You can either:
- Always send to the same address(es)
- Send to different addresses depending on the order details
Send all notifications to fixed email addresses
This is the simplest option. With this setup, every support notification will always be delivered to the email addresses specified regardless of the order details.
- You can add only one support email address Example: support@my-shop.com
- You can add several support email addresses by separating them with a comma Exemple: support@my-shop.com,sos@my-shop.com,help@my-shop.com
Route support notifications based on order details
Example based on the language spoken in the country of the delivery
- Orders to France go to support@my-shop.fr
- Orders to the UK go to support@my-shop.uk
- All other orders go to support@my-shop.com
To do this, you will need to use the conditional language named Liquid :
{% if order.language_code == 'FR' %} support@my-shop.fr
{% elsif order\.language_code == 'UK' %} support@ymy-shop.uk
{% else %} support@my-shop.com {% endif %}
-
The email address itself must not contain variables so for example,
support-\{\{ order\.country_code }}@yourshop.comwill not work -
Always add a fallback with
elseto ensure that if no condition is met, notifications still will be still be sent to a default support email