How to show selected pickup point in order notifications?
To show selected pickup point details in order notifications, you can use our metafield.
In the notification code, find:
{{ shipping_address | format_address }}
Replace it with:
{% assign pickup_point = metafields.atlas_pickup_points.point %}{% if pickup_point %}<p>{{ pickup_point.details.name }} - {{ pickup_point.code }}<br/>{{ pickup_point.address.address1 }}<br/>{{ pickup_point.address.zip }} {{ pickup_point.address.city }}</p>{% else %}{{ shipping_address | format_address }}{% endif %}
This code will show the pickup point address if the pickup point is selected, otherwise it will show the order shipping address.