Skip to main content

FAQ

How to show the selected pickup point in order notifications

By default, order notifications show the shipping address. If a buyer selects a pickup point, you can customize notifications to show the pickup point details instead.

#Customer notifications

  1. Go to Shopify Admin → Settings → Notifications → Customer notifications
  2. Select Order confirmation
  3. Click Edit code

Find this line in your template:

{{ shipping_address | format_address }}

Replace it with the following:

{% if shop.metafields.atlas_pickup_points.rate_names contains shipping_method.title %}
   {% 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 }}
         <br/>
         {{ shipping_address.country }}
      </p>
   {% else %}
      <a href="{{ order_status_url }}">View your pickup point on the order status page</a>
   {% endif %}
{% else %}
   {{ shipping_address | format_address }}
{% endif %}

The first line checks whether the order’s shipping method is one of the shipping option names in your pickup point configurations. Orders with other shipping methods show the regular shipping address. If the order uses a pickup point shipping option but has no pickup point yet, buyers get a link to their order status page instead.

Repeat the same for other notifications (Shipping confirmation, Order cancelled, etc.).

#Staff notifications

To show pickup point information in staff notifications, go to Shopify Admin → Settings → Notifications → Staff notifications, open the order notification you use, click Edit code, and find the following lines:

<strong>Shipping address</strong>
<br>
<p>
{{ shipping_address.name }}<br>
{% if shipping_address.company %}
   {{ shipping_address.company }}<br>
{% endif %}
{{ shipping_address.street }}<br>
{{ shipping_address.city }},
{{ shipping_address.province }}
{{ shipping_address.zip }}<br>
{{ shipping_address.country }}<br>
{{ shipping_address.phone }}<br>
</p>

Replace it with the following:

<strong>Shipping address</strong>
<br>
<p>
{% if shop.metafields.atlas_pickup_points.rate_names contains shipping_method.title %}
   {% assign pickup_point = metafields.atlas_pickup_points.point %}
   {% if pickup_point %}
      {{ pickup_point.details.name }} - {{ pickup_point.code }}<br/>
      {{ pickup_point.address.address1 }}<br/>
      {{ pickup_point.address.city }},
      {{ pickup_point.address.zip }}<br/>
      {{ shipping_address.country }}<br/>
      {{ shipping_address.phone }}<br/>
   {% else %}
      Pickup point not selected yet, check the order in Shopify Admin<br/>
      {{ shipping_address.country }}<br/>
      {{ shipping_address.phone }}<br/>
   {% endif %}
{% else %}
   {{ shipping_address.name }}<br>
   {% if shipping_address.company %}
      {{ shipping_address.company }}<br>
   {% endif %}
   {{ shipping_address.street }}<br>
   {{ shipping_address.city }},
   {{ shipping_address.province }}
   {{ shipping_address.zip }}<br>
   {{ shipping_address.country }}<br>
   {{ shipping_address.phone }}<br>
{% endif %}
</p>