Skip to main content

Shopify Flow

Add Zapiet - Pickup + Delivery triggers to your workflow

Written by Marija
Shopify flow logo

Shopify Flow allows you to build custom automations that help you run your business more efficiently.

Use Zapiet - Pickup + Delivery triggers in your Shopify Flow workflows, available on all plans.


Requirements


List of Zapiet - Pickup + Delivery triggers

When setting up a workflow with Zapiet - Pickup + Delivery, you can use the following triggers:

  • New delivery order created

    • Triggered when a new delivery order is created

  • New pickup order created

    • Triggered when a new pickup order is created

  • New shipping order created

    • Triggered when a new shipping order is created

  • Updated delivery order

    • Triggered when a delivery order has been updated

  • Updated pickup order

    • Triggered when a pickup order has been updated

  • Updated shipping order

    • Triggered when a shipping order has been updated

Updated order events are triggered when you change order status in Zapiet - Pickup + Delivery.

Screenshot showing the Zapiet order view with the edit order modal open

Updated order events are also triggered when you update the delivery information manually.


Set up a workflow with Zapiet - Pickup + Delivery

To learn more about how to create and manage a workflow, take a look at the Creating workflows in Shopify Flow article.

  1. In Shopify Flow, click Create workflow.

  2. Click Select trigger.

  3. Click Zapiet - Pickup + Delivery to open a set of triggers you can use.

  4. Select the trigger you want to use, and continue setting up the workflow as needed.

  5. After you've set up the workflow, click Turn on workflow.

This workflow should now be active for your future orders.

For any questions about setting up workflows, you can contact Shopify support.


Access Zapiet order information

When a customer makes selections in the Zapiet widget, such as their checkout method, date, or time, this information is recorded on the order. You can access it in Shopify Flow using the attributes.

If you're using the checkout widget with metafields-only mode, you'll also need to add the Get Zapiet order attributes action to access the same information from metafields.

Access custom attributes

Custom attributes are added to all orders from Shopify POS, and from orders processed with the cart widget, checkout widget and checkout delivery methods widget.

Custom attributes can be used as variables in both actions and conditions in your Shopify Flow workflows.

Actions

  1. Open the Shopify Flow you want to edit, then click on the action where you want to add custom attributes.

  2. Click Add variable next to Subject or Message fields, based on your needs.

  3. Click Order.

  4. Search for customattributes in the list.

    • f you click Key, it will print the names of the attributes.

    • If you click Value, it will print the values of the attributes.

    • If you want to print them both side by side, we recommend adding this code:

      {% for customAttributes_item in order.customAttributes %}
      {{customAttributes_item.key}}: {{customAttributes_item.value}} <br>
      {% endfor %}

Continue editing the flow, and save the flow when you have finished.


Conditions

  1. Open the Shopify Flow you want to edit, then click on the condition where you want to use a custom attribute.

  2. Under Data to use, click Order.

  3. Search for customattributes in the list, then select Key or Value.

  4. Choose a comparison (for example, is equal to) and enter the value to compare against.
    For example, you can check if the checkout method is equal to pickup:

    Example configuration in Flow to compare a custom attribute.

Continue editing the flow, and save the flow when you have finished.


Access custom metafields

If you're using the checkout widget with metafields-only mode, you'll also need to add the Get Zapiet order attributes action to access the order information from metafields.

  1. Open the Shopify Flow you want to edit, then add an action before the step where you want to add custom attributes.

  2. In the action menu, click Zapiet - Pickup + Delivery.

  3. Click Get Zapiet order attribute.

Custom metafields can be used as variables in both actions and conditions in your Shopify Flow workflows.

Actions

  1. In the step where you want to add custom attributes, click add variable.

  2. Click getZapietOrderAttributes.

  3. You can choose the value of one attribute, or all attributes.

  4. If you want to print all attributes, click attributes.

    • You can add the Value or the Key.

      • If you click Key, it will print the names of the attributes.

      • If you click Value, it will print the values of the attributes.

      • If you want to print them both side by side, we recommend adding this code:

        {% for attributes_item in getZapietOrderAttributes.attributes %}
        {{attributes_item.key}}:{{attributes_item.value}} <br>
        {% endfor %}

Continue editing the flow, and save the flow when you have finished.


Conditions

  1. In the step where you want to compare variables, click click add variable.

  2. Click getZapietOrderAttributes.

  3. Choose the value of the attribute you want to compare.

  4. Fill in the rest of the conditions.
    For example, you can check if the checkout method is equal to pickup:

    Example configuration in Flow to compare a custom attribute.

Continue editing the flow, and save the flow when you have finished.


Limitations

  • It is not possible to set up the Flow to add a different order tag depending on whether the order is ready for pickup or picked up. Those statuses only exist in Zapiet - Pickup + Delivery, not in Shopify orders.

    Since Flow can only read the Shopify order statuses, it won't be able to differentiate between ready for pickup or picked up order status.

Did this answer your question?