Introduction


When you’re using Pickup Points in shopify and want to show the correct adress in the notification-mail, small adjustments is required.

The examples in this article is for guidance and can be changed according to your needs. The principles can also be used for other Shopify templates, not shown in this guide.

All examples presume that you’ve already opened the notification template, which can be found under “Settings” => “Notifications” => “Order confirmation”.

Depending on which solution your using, the configuration is a little different.
I’m using the Shopify Shipping calculator
I’m using the Webshipper module in checkout

Notice: Webshipper do not customize our customers notification templates as a part of our subscription, though we’re more than willing to offer support, given there is any problems.

 


I’m using the Shopify Shipping calculator


For customers using the Shopify Shipping calculator, all data for pickup-points is stored in “shipping_method”.

It’s therefore required to check whether there is used a webshipper PUP method (WEBSHIPR-WSP) or a normal delivery address. Following example explains how.

HTML example:

{% if requires_shipping and shipping_address %}

<p><b>Shipping address</b><br />

{% if shipping_method.handle contains ‘WEBSHIPR-WSP’ %}

Your order will be shipped to:<br />
{{shipping_method.title}}

{% else %}

{{ shipping_address.name }}<br />
{{ shipping_address.street }}<br />
{{ shipping_address.city }}<br />
{{ shipping_address.province }}
{{ shipping_address.zip }}<br />
{{ shipping_address.country }}</p>
{% endif %}

{% endif %}

 

Plain text example:

{% if requires_shipping and shipping_address %}
{% if shipping_method.handle contains ‘WEBSHIPR-WSP’ %}
Shipping address
Your order will be shipped to:
– {{shipping_method.title}}
{% else %}
Shipping address
{{ shipping_address.name }}
{{ shipping_address.street }}
{{ shipping_address.city }}, {{ shipping_address.province }} {{ shipping_address.zip }}
{{ shipping_address.country }}{% endif %}{% if billing_address %}
{% endif %}

{% endif %}

 


I’m using the webshipper module in checkout


Customers using the Webshipper cart module, need to check the orders attributes to decide whether there is used a PUP order or not.

In the following example we’re checking if attributes.webshipper_shipping_selection is ‘POSTDK’,’GLS’,’SWIPBOX’ or ‘BRING’, cause we know that those methods always has a pickup point chosen.

If the criterias above is met, we assign a couple of new attributes to the order, which contain the PUP. ( attributes.webshipper_name, attributes.webshipper_address, attributes.webshipper_zip, attributes.webshipper_city )

HTML example:

{% if requires_shipping and shipping_address %}
<p><b>Shipping address</b><br />
{% assign selection = attributes.webshipper_shipping_selection %}
{% if selection == ‘SWIPBOX’ or selection == ‘POSTDK’ or selection == ‘GLS’ or selection == ‘BRING’ %}

{{attributes.webshipper_name}} <br />
{{attributes.webshipper_address}} <br />
{{attributes.webshipper_zip}} {{attributes.webshipper_city}}<br/>
{% else %}
{{ shipping_address.name }}<br />
{{ shipping_address.street }}<br />
{{ shipping_address.city }}<br />
{{ shipping_address.province }}
{{ shipping_address.zip }}<br />
{{ shipping_address.country }}</p>
{% endif %}

{% endif %}

Plain text example: 

{% assign selection = attributes.webshipper_shipping_selection %}
{% if selection == ‘SWIPBOX’ or selection == ‘POSTDK’ or selection == ‘GLS’ or selection == ‘BRING’ %}
Shipping address
{{attributes.webshipper_name}}
{{attributes.webshipper_address}}
{{attributes.webshipper_zip}} {{attributes.webshipper_city}}

{% else %}

Shipping address
{{ shipping_address.name }}
{{ shipping_address.street }}
{{ shipping_address.city }}, {{ shipping_address.province }} {{ shipping_address.zip }}
{{ shipping_address.country }}{% endif %}{% if billing_address %}

{% endif %}