Local Delivery Notifications: Out for Delivery & Delivered Trigger on Fulfillment

Is there a way to trigger the Local Delivery out for delivery and delivered emails separately?

Marketing a local delivery as ready for delivery doesn’t send anything

Marking it as fulfilled sends both the out-for-delivery and delivered emails at the same time

Hello @eCommBadassery

To create a custom email template for the Local Delivery out for delivery event, you can use the following code:

{% if order.shipping_method.carrier_code == 'local_delivery' %}
  {% if order.status == 'ready_for_pickup' %}
    {% include 'email/local_delivery_out_for_delivery.liquid' %}
  {% endif %}
{% endif %}

This code will check if the order’s shipping method is Local Delivery and if the order’s status is Ready for Pickup. If both of these conditions are met, the email/local_delivery_out_for_delivery.liquid template will be included in the email.

You can create a custom email template for the Local Delivery delivered event in the same way. The only difference is that you will need to use the email/local_delivery_delivered.liquid template instead of the email/local_delivery_out_for_delivery.liquid template.

Sorry, where exactly can I apply this code?

Hey, @paolobadajos .

Thank you for joining the thread.

It looks like this custom code is for the Local delivery templates, and you can edit the notification templates under the Notifications settings.

If you have any other questions on this topic, then don’t hesitate to let us know!

Thank you for responding!

That makes sense. Do i jus press edit code and add this custom code?

The Help Center page Elias shared has more information on how to edit your notification templates. You can access them from within your admin under Settings > Notifications. If you aren’t comfortable making these kind of changes yourself we recommend hiring a developer to assist you further: Shopify Partner Directory.