This article is only useful when the Shopify Plus integration is used
To make sure that it is clear in the confirmation email you that a Pick-up Point was chosen. You will have to change some stuff in the Notifications section in Shopify.
Therefore go to your Shopify Admin and navigate to Admin > Notifications.
Change Order confirmation e-mail
Look for the Shipping addres header. It is usually shown in an H4 (by default). This is the header above the shipping address (or Pick-up point address)
<h4>Shipping address</h4>
Change this to:
<h4>
{% if attributes['Pick-up Point location'] %}
{% unless tags contains 'CodePickupPoint' %}Contact address{% endunless %}
{% if tags contains 'CodePickupPoint' %}Shipping address{% endif %}
{% else %}
Shipping address
{% endif %}
</h4>
Note that `CodePickupPoint` is the tag that is being used and configured in the App Admin.
Then search for the Shipping method and Payment method line and add a new line in the table right after the </tr>. See below for an example based on the default email template. The part in red is the part that you should add.
<table class="row">
<tr>
{% if requires_shipping and shipping_address %}
<td class="customer-info__item" valign="top">
<h4>Shipping method</h4>
<p>{{ shipping_method.title }}</p>
</td>
{% endif %}
{% assign transaction_count = transactions | size %}
{% if transaction_count > 0 %}
<td class="customer-info__item" valign="top">
<h4>Payment method</h4>
{% for transaction in transactions %}
{% if transaction.status == "success" or transaction.status == "pending" %}
{% if transaction.kind == "authorization" or transaction.kind == "sale" %}
<p class="customer-info__item-content">
{% if transaction.payment_details.credit_card_company %}
{% capture credit_card_url %}notifications/{{ transaction.payment_details.credit_card_company | downcase | replace: " ", "_" }}.png{% endcapture %}
<img src="{{ credit_card_url | shopify_asset_url }}" class="customer-info__item-credit" height="24">
<span>Payment method — <strong>{{ transaction.amount | money }}</strong></span>
{% else %}
{{ transaction.gateway | replace: "_", " " | capitalize }} — <strong>{{ transaction.amount | money }}</strong>
{% endif %}
</p>
{% endif %}
{% endif %}
{% endfor %}
</td>
{% endif %}
</tr>
{% if attributes['Pick-up Point location'] %}
<tr>
<td class="customer-info_item" colspan="2">
<h4>Chosen pick-up point</h4>
<p>{{ attributes['Pick-up Point location'] }}</p>
</td>
</tr>
{% endif %}
</table>
Comments
Please sign in to leave a comment.