Skip to content

Instantly share code, notes, and snippets.

@zorzv
zorzv / Picked up
Created September 8, 2021 13:02
Shopify Picked up with Line Properties
{% capture email_title %}Your order has been picked up{% endcapture %}
{% capture email_body %}Thank you for shopping at {{ shop_name }}{% endcapture %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ email_title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
@zorzv
zorzv / Missed delivery
Created September 8, 2021 13:02
Shopify Missed delivery with Line Properties
{% capture email_title %}Sorry we missed you {% endcapture %}
{% capture email_body %}
Hi {{ customer.first_name }}, we weren’t able to deliver your order.
{% endcapture %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ email_title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
@zorzv
zorzv / Delivered
Created September 8, 2021 13:00
Shopify Delivered with Line Properties
{% if fulfillment.item_count == item_count %}
{% capture email_title %}Your order has been delivered{% endcapture %}
{% capture email_body %}Your order has been delivered. Track your shipment to see the delivery status.{% endcapture %}
{% elsif fulfillment.item_count > 1 %}
{% if fulfillment_status == 'fulfilled' %}
{% capture email_title %}The last items in your order has been delivered{% endcapture %}
{% capture email_body %}The last items in your order has been delivered. Track your shipment to see the delivery status.{% endcapture %}
{% else %}
{% capture email_title %}Some items in your order have been delivered{% endcapture %}
{% capture email_body %}Some items in your order have been delivered. Track your shipment to see the delivery status.{% endcapture %}
@zorzv
zorzv / Out for delivery
Created September 8, 2021 12:59
Shopify Out for delivery with Line Properties
{% if fulfillment.item_count == item_count %}
{% capture email_title %}Your order is out for delivery{% endcapture %}
{% capture email_body %}Your order is out for delivery. Track your shipment to see the delivery status.{% endcapture %}
{% elsif fulfillment.item_count > 1 %}
{% if fulfillment_status == 'fulfilled' %}
{% capture email_title %}The last items in your order are out for delivery{% endcapture %}
{% capture email_body %}The last items in your order are out for delivery. Track your shipment to see the delivery status.{% endcapture %}
{% else %}
{% capture email_title %}Some items in your order are out for delivery{% endcapture %}
{% capture email_body %}Some items in your order are out for delivery. Track your shipment to see the delivery status.{% endcapture %}
@zorzv
zorzv / Shipping update
Created September 8, 2021 12:58
Shopify Shipping update with Line Properties
{% capture email_title %}Your shipping status has been updated{% endcapture %}
{% capture email_body %}The following items have been updated with new shipping information.{% endcapture %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ email_title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
@zorzv
zorzv / Shipping confirmation
Created September 8, 2021 12:58
Shopify Shipping confirmation with Line Properties
{% if fulfillment.item_count == item_count %}
{% capture email_title %}Your order is on the way{% endcapture %}
{% capture email_body %}Your order is on the way. Track your shipment to see the delivery status.{% endcapture %}
{% elsif fulfillment.item_count > 1 %}
{% if fulfillment_status == 'fulfilled' %}
{% capture email_title %}The last items in your order are on the way{% endcapture %}
{% capture email_body %}The last items in your order are on the way. Track your shipment to see the delivery status.{% endcapture %}
{% else %}
{% capture email_title %}Some items in your order are on the way{% endcapture %}
{% capture email_body %}Some items in your order are on the way. Track your shipment to see the delivery status.{% endcapture %}
@zorzv
zorzv / Fulfillment request
Created September 8, 2021 12:57
Shopify Fulfillment request with Line Properties
<p>{{ service_name }},</p>
<br>
<p>Please fulfill order {{ name }}.</p>
<p>Total number of items: {{ fulfillment.item_count }}</p>
<p>Unique items: {{ fulfillment.fulfillment_line_items.size }}</p>
<br>
<p><strong>Items to fulfill:</strong></p>
{% for line in fulfillment.fulfillment_line_items %}
<p>Variant Title: {{ line.line_item.title }}</p>
<p>SKU: {{ line.line_item.sku }}</p>
@zorzv
zorzv / POS Exchange receipt
Created September 8, 2021 12:56
Shopify POS Exchange receipt with Line Properties
{% capture email_title %}{% endcapture %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ email_title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
<style>
@zorzv
zorzv / POS and mobile receipt
Created September 8, 2021 12:55
Shopify POS and mobile receipt with Line Properties
{% capture email_title %}
Thank you for your purchase!
{% endcapture %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ email_title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
@zorzv
zorzv / Abandoned Checkout
Created September 8, 2021 12:54
Shopify Abandoned Checkout with Line Properties
{% capture email_title %}
{% if item_count == 1 %}
You left an item in your cart
{% else %}
You left items in your cart
{% endif %}
{% endcapture %}
{% capture email_body %}
{% if billing_address.first_name %}
{% if item_count == 1 %}