Liquid Variables Used in the "R+ Back in Stock" Email Template
This article documents every Liquid variable referenced in the R+ Back in Stock notification email template. Use it as a reference when customizing the email content, checking why a field may be blank, or explaining to a client which data points populate automatically.
Variables are grouped by the object they belong to: product, variant, shop, and subscriber.
Product Variables
product.title
The name of the product that came back in stock. Displayed in the email's <title> tag and again inside the product info block.
Variant Variables
The email is tied to a specific variant of the product (not just the product itself), since stock status and pricing are set at the variant level.
variant.image.src
The image URL for the specific variant. If no variant image is set, the entire product image block is skipped (wrapped in a conditional check).
variant.image.alt
The alt text for the variant image, used for accessibility and shown if the image fails to load.
variant.title
The variant's name (e.g., "Small / Blue"). This is only shown if the variant has a real title — Shopify's default single-variant products use "Default Title," which is explicitly excluded so it doesn't show up as a label.
variant.sku
The variant's SKU code. Only displayed if a SKU value exists.
variant.price
The current selling price of the variant.
variant.compare_at_price
The original ("was") price, shown with strikethrough styling next to the current price. Only displayed if a compare-at price is actually set on the variant.
variant.url
The direct link to the product/variant page, used as the destination for the "Shop Now" button.
Shop Variables
shop.email_accent_color
The merchant's brand accent color, set in Shopify's email settings. Used for links and the CTA button background so the email matches the store's branding automatically.
shop.logo_url
The URL of the store's logo, shown in the header. If no logo is uploaded, the store name is shown as text instead.
shop.logo_width
The configured display width (in pixels) for the logo image.
shop.name
The store's name. Used as a text fallback in the header (if no logo exists) and again in the footer.
shop.url
The store's homepage URL, linked from the footer under "Visit our store."
shop.address.address1
The store's street address, shown in the footer if present.
shop.address.city
The store's city, shown in the footer if present.
shop.address.province_code
The store's state/province abbreviation, shown in the footer if present.
shop.address.zip
The store's postal/ZIP code, shown in the footer if present.
shop.refund_policy.url
Link to the store's refund policy page. Only shown in the footer if a refund policy has been configured.
shop.privacy_policy.url
Link to the store's privacy policy page. Only shown in the footer if a privacy policy has been configured.
Subscriber Variables
These relate to the person who signed up for the back-in-stock alert, not the store itself.
subscriber.manage_subscriptions_url
Link allowing the subscriber to manage their back-in-stock notification preferences. If this exists, it's shown alongside an "Unsubscribe from all" link.
subscriber.unsubscribe_url
Link to unsubscribe. Behavior depends on context:
- If
subscriber.manage_subscriptions_urlis also present, this appears as "Unsubscribe from all," next to the manage-subscriptions link. - If
manage_subscriptions_urlis not present, this appears on its own simply as "Unsubscribe."
Conditional Logic Summary
Several sections of the template only render when certain data is available, which is worth keeping in mind when previewing or troubleshooting the email:
| Section | Renders only if |
|---|---|
| Logo vs. store name in header | shop.logo_url is present |
| Product image | variant.image.src is present |
| Variant label | variant.title is present and isn't "Default Title" |
| SKU label | variant.sku is present |
| Compare-at (strikethrough) price | variant.compare_at_price is present |
| Footer address block | shop.address.address1 or shop.address.city is present |
| Refund Policy link | shop.refund_policy.url is present |
| Privacy Policy link | shop.privacy_policy.url is present |
| Manage subscriptions / Unsubscribe from all | subscriber.manage_subscriptions_url is present |
| Unsubscribe (standalone) | subscriber.manage_subscriptions_url is absent but subscriber.unsubscribe_url is present |
Quick Reference List
product.titlevariant.image.srcvariant.image.altvariant.titlevariant.skuvariant.pricevariant.compare_at_pricevariant.urlshop.email_accent_colorshop.logo_urlshop.logo_widthshop.nameshop.urlshop.address.address1shop.address.cityshop.address.province_codeshop.address.zipshop.refund_policy.urlshop.privacy_policy.urlsubscriber.manage_subscriptions_urlsubscriber.unsubscribe_url