# How Shopify ships subscription orders, and how Pakkeshopper keeps your customer's choice

A customer chooses the shipping method for the first order of a subscription only. Shopify ships every later order with the cheapest rate. This guide explains why, and how each renewal can ship like the first order.

When a customer buys a subscription in your Shopify store, they choose a shipping method for the first order only. For every later order of that subscription, Shopify picks the shipping method by itself: the cheapest one. That can be another pickup point, another delivery type or another carrier than the customer chose.

This guide explains what Shopify does, why a shipping app cannot change it alone, and how Pakkeshopper makes each renewal ship the way the customer chose on the first order.

## In short

- A subscription has a **first order** (placed in the checkout) and **renewal orders** (created automatically, with no checkout).
- In the checkout, the customer chooses the shipping method for the first order. Shopify stores a second shipping method for all renewals: **the cheapest rate that was offered**.
- Every renewal order arrives with that stored shipping method, whatever the customer chose.
- With Pakkeshopper and a short workflow in Shopify Flow, each renewal ships like the first order: the same carrier, the same delivery type and the same pickup point.

## What Shopify does

### In the checkout

A checkout with a subscription product has two deliveries to decide:

1. **The first delivery.** The customer sees the shipping methods and chooses one, as in any checkout.
2. **The recurring deliveries.** Shopify chooses for the customer. It takes the cheapest rate from the list. If several rates have the same price, it takes the first one. The checkout shows it under "Recurring shipments", with the price for each delivery.

The customer cannot change the recurring shipping method, and no app can. This is how Shopify's checkout works for subscriptions.

### On the orders

| Order | How it is made | Shipping method on the order |
|---|---|---|
| First order | The customer completes the checkout | The method the customer chose. The stored method is also on the order, as a second shipping line at 0.00 |
| Renewal order | Shopify creates it from the subscription, with no checkout | Only the stored method: the cheapest rate from the first checkout |

No shipping rates are requested when a renewal is created. Shopify copies the stored method from the subscription to the new order.

### An example

A customer in Roskilde subscribes to coffee.

- For the first order they choose **GLS pickup point #3**, a supermarket near their work.
- The cheapest rate in the list is **GLS pickup point #1**, the pickup point nearest to their home address. Shopify stores this one for the subscription.
- The first order ships to pickup point #3.
- Every renewal order says pickup point #1.

The same happens across delivery types and carriers. A customer who chose home delivery gets renewals to a pickup point if a pickup point rate was the cheapest. A customer who chose one carrier gets renewals with another carrier if that carrier had the cheapest rate.

## What this means for your store

- **Parcels go to the wrong place.** The label follows the shipping method on the order, so the renewal is sent to a pickup point the customer did not choose.
- **Your warehouse system reads the wrong delivery.** Order attributes and the shipping address name the stored method, not the customer's choice.
- **The checkout names one pickup point for all future deliveries.** With a pickup point method, the recurring line would show the name of the nearest pickup point, also when the customer chose another one for the first order.
- **The price of each renewal is the price of the cheapest rate.** The customer pays that price on every renewal.

## Why a shipping app cannot fix this alone

- **Shopify makes the choice, not the app.** A shipping app answers with a list of rates. Shopify picks the recurring one from that list.
- **The link between a renewal and its first order is on the subscription contract.** Shopify lets only the subscription app and Shopify Flow read a subscription contract. A shipping app cannot read it, so it cannot know which first order a renewal belongs to.
- **A shipping method on an order cannot be changed.** Shopify has no way to change the shipping method or its code on an existing order. An app can only remove the line and add a new one, through an order edit.

Because Shopify Flow can read the subscription contract, the solution goes through Flow.

## How Pakkeshopper solves it

### 1. The checkout stays clear

Pakkeshopper shows a neutral name on the recurring line in the checkout, for example "Subscription delivery", so it does not name one pickup point. The name has a default text. You change it in Pakkeshopper under **Settings**: "Name of subscription deliveries in the checkout". The field is below "Enable advanced checkout features", and that setting must be on.

Pakkeshopper also makes sure that the method Shopify picks for the recurring deliveries is one your shipping rules allow, so a subscription checkout is not blocked by a hidden method.

### 2. Each renewal ships like the first order

Pakkeshopper has an action for Shopify Flow: **Ship like the first order of the subscription**.

You add one workflow to your store. When Shopify creates a renewal order, the workflow tells Pakkeshopper which first order the renewal belongs to. Pakkeshopper then gives the renewal the delivery of that first order:

- the same **carrier**,
- the same **delivery type** (pickup point, home delivery, company delivery),
- the same **pickup point**.

Everything Pakkeshopper does for the order then uses that delivery:

- the [**shipping label**](https://pakkeshopper.com/features/label-printing/),
- the [**order attributes**](https://pakkeshopper.com/developers/shopify-orders/) (carrier, delivery type, pickup point), if you use them,
- the **pickup point as the shipping address**, if you use that setting,
- the [**Pakkeshopper warehouse app**](https://pakkeshopper.com/warehouse-app/).

Pakkeshopper reads the first order from its own records. A subscription that started long ago is followed too.

### 3. A fallback for subscriptions without a known choice

Some first orders have no Pakkeshopper shipping method to follow, for example because the customer chose a rate that is not from Pakkeshopper. For these you can select a fallback: **Settings**, card "Subscription renewals", "Shipping method for renewals without a known choice".

The fallback is one of your own shipping methods. If it is a pickup point method, Pakkeshopper sends the parcel to the pickup point nearest to the customer's address.

### 4. Optional: the right method on the order in Shopify

The shipping method on the renewal order in Shopify still shows the stored method. If people or systems read that line, turn on "Also replace the shipping method on the renewal order in Shopify" in the same card. Pakkeshopper then replaces the line with the method the renewal ships with, at the same price.

Pakkeshopper needs permission to edit orders for this. The Settings page asks you to grant it when you turn the setting on.

## Set it up

You need the Shopify Flow app, which is Shopify's own automation app. There are three ways to add the workflow: install it from a template, import it from a file, or build it yourself. Each way gives the same workflow.

### Use the workflow template

Pakkeshopper has a workflow template in Shopify Flow: **Update shipping on subscription orders**. It contains the trigger, the condition and the Pakkeshopper action, with all fields filled.

1. Open Shopify Flow and go to the templates.
2. Search for "Pakkeshopper" and select **Update shipping on subscription orders**.
3. Install the template.
4. Turn the workflow on.

If the template does not show in your store, import the workflow file.

### Import the workflow file

The same workflow is a file that you can import into Shopify Flow. The workflow uses the Pakkeshopper action, so Pakkeshopper must be installed in the store.

1. Download the workflow file: [update-shipping-on-subscription-orders.flow](https://pakkeshopper.com/downloads/update-shipping-on-subscription-orders.flow).
2. In your Shopify admin, go to **Apps** and open **Flow**.
3. Select **Import**.
4. Select **Add files** and choose the file.
5. Select **Import**.
6. Turn the workflow on. Its name in Flow is "Update Shipping on Subscription Orders".

### Build the workflow yourself

1. In Shopify Flow, create a workflow with the trigger **Order created**.
2. Add a **condition**: the order's source name **starts with** `subscription_contract`. This is true for renewal orders only.
3. Add the Pakkeshopper action **Ship like the first order of the subscription**, and fill its fields:
   - **Order**: the order from the trigger.
   - **First order of the subscription**: the first order (origin order) of the subscription contract. In Flow's variable picker this is `order / lineItems / contract / originOrder / id`. As text:

     ```liquid
     {% for li in order.lineItems %}{{ li.contract.originOrder.id }} {% endfor %}
     ```
   - **Shipping of the first order** (optional): the shipping lines and the address of the first order. Pakkeshopper uses them only when it has no record of that first order, for example an order from before you installed the app. Paste this text:

     ```liquid
     {% for li in order.lineItems %}{% if li.contract.originOrder.id %}{% for sl in li.contract.originOrder.shippingLines %}{"code":{{ sl.code | json }},"title":{{ sl.title | json }},"source":{{ sl.source | json }},"removed":{{ sl.isRemoved | json }}} {% endfor %}{"address1":{{ li.contract.originOrder.shippingAddress.address1 | json }},"zip":{{ li.contract.originOrder.shippingAddress.zip | json }},"country":{{ li.contract.originOrder.shippingAddress.countryCodeV2 | json }}} {% endif %}{% endfor %}
     ```
4. Turn the workflow on.

There is no switch in Pakkeshopper for this. The workflow is what turns it on. Without the workflow, renewals ship as Shopify stored them.

## Good to know

- **The customer pays the stored price.** Shopify charges the price of the cheapest rate on every renewal. If the first order's shipping method costs more, you carry the difference. Pakkeshopper does not change a price. If you want a specific price for renewals, make that method the cheapest one a subscription cart can get.
- **The change comes a moment after the order.** A renewal first appears with the stored method. The workflow then changes it, usually within seconds. If Shopify is not ready, Pakkeshopper tries again by itself for about two and a half hours.
- **A label that is already printed is not changed.** The same goes for a renewal that is shipped, closed or cancelled.
- **A customer who moved keeps the stored method.** A pickup point from the first order is not used when the renewal goes to another address than the first order did. If you selected a fallback method, the renewal gets that.
- **Renewals with a shipping method that is not from Pakkeshopper** become Pakkeshopper orders when the action gives them a delivery. They get a label and tracking, and they count in your monthly orders.
- **Orders that the customer collects in your store are never changed.**
- **The optional order edit has side effects.** Shopify marks the order as edited. The new shipping line is a custom line without a shipping code, and the old line stays in the order's data, marked as removed. A system that reads the order's original total sees the shipping amount twice. A warehouse system should read the carrier, the delivery type and the pickup point from the [order attributes](https://pakkeshopper.com/developers/shopify-orders/).

## What Pakkeshopper does not do

Pakkeshopper does not create, bill, pause or cancel subscriptions. That is the work of your subscription app. Pakkeshopper decides how each order of the subscription is shipped.

This guide describes what we measured with the Shopify Subscriptions app. Other subscription apps use the same subscription contracts in Shopify. Some of them have their own shipping settings for renewals, so details can differ.

Read more about [pickup points in the checkout](https://pakkeshopper.com/features/pickup-points/) and [shipping rules](https://pakkeshopper.com/features/shipping-rules/), or see the full picture in the [guide to shipping in Shopify for Danish and Nordic stores](https://pakkeshopper.com/guides/shopify-shipping-guide/).

## Frequently asked questions

### Why do my subscription renewals ship to another pickup point than the customer chose?

Shopify stores the cheapest shipping rate from the first checkout for all renewals. For a pickup point method, the cheapest rate is normally the pickup point nearest to the customer's address, not the one the customer chose.

### Can the customer choose the shipping method for renewals in the checkout?

No. Shopify chooses it. The checkout shows it under 'Recurring shipments'.

### Can an app change the shipping method that Shopify stored?

No. Only the subscription app can change its own subscription contracts. Pakkeshopper changes how the renewal order is shipped after Shopify created it.

### Do I need Shopify Flow?

Yes. Shopify lets Flow read the subscription contract, which says what the first order was. Pakkeshopper cannot read it.

### Does this work for subscriptions that started before I set it up?

Yes. Pakkeshopper reads the first order from its own records. For a first order it has no record of, the optional field 'Shipping of the first order' lets the workflow send what Pakkeshopper needs.

### What happens if the workflow is turned off?

Renewals ship with the method Shopify stored, as before.

### Who pays if the customer's method costs more than the cheapest one?

The customer pays the stored price on each renewal. You carry the difference.
