Skip to content

How can I include the pickup point details in the confirmation email?

Including pickup point details in the order confirmation email is a great way to provide customers with a clear record of their selected location.


Adding pickup point details to the confirmation email

Section titled “Adding pickup point details to the confirmation email”

For Shopify Plus stores, you can customize the Order confirmation email to display pickup point details. Follow these steps:

  1. Navigate to Settings > Notifications > Customer notifications in your Shopify admin.
  2. Select Order confirmation from the list of notifications.
  3. Click Edit code.

Replacing the shipping address with pickup point data

Section titled “Replacing the shipping address with pickup point data”
  1. Locate the following line in your email template:

    {{ shipping_address | format_address }}

  2. Replace it with the following Liquid code:

{% assign PickupPoint = metafields.Globe.PickupPoint %}
{% assign globe_config = shop.metafields.globe.config %}
{% assign is_pickup_method = false %}
{% if PickupPoint and globe_config %}
{% assign order_country = shipping_address.country_code | downcase %}
{%- comment -%} Gather all shipping method titles into one lowercase haystack {%-endcomment-%}
{% assign method_titles = "" %}
{% if shipping_method.title %}
{% assign method_titles = shipping_method.title %}
{% endif %}
{% for sm in shipping_methods %}
{% assign method_titles = method_titles | append: "||" | append: sm.title %}
{% endfor %}
{% assign method_titles = method_titles | downcase | strip %}
{% for entry in globe_config %}
{% assign entry_name = entry.name | downcase | strip %}
{% assign entry_country = entry.country | downcase %}
{% if entry_name != "" and entry_country == order_country or entry_country == "all" %}
{% if entry_name != "" and method_titles contains entry_name %}
{% assign is_pickup_method = true %}
{% break %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if PickupPoint and is_pickup_method %}
<p>
{{ PickupPoint.name }}
<br/>
{{ PickupPoint.addressObject.street }}
<br/>
{{ PickupPoint.addressObject.city }} {{ PickupPoint.addressObject.zip }}
<br/>
{{ shipping_address.country }}
</p>
{% else %}
{{ shipping_address | format_address }}
{% endif %}