If you sell products with Fabrikatör backorder feature, it’s essential to keep customers informed right from the start. Shopify doesn’t show backorder informations by default in the order confirmation email. With a simple code update, you can customize the email to show which items are on backorder — improving transparency and reducing customer inquiries.
Follow the steps below to modify the order confirmation notification template and automatically include backorder notices for relevant products.
Go to your Shopify Admin Panel.
Log in to your Shopify admin.
Navigate to Notification Settings:
Go to Settings > Notifications.
Open the Order Confirmation Template:
Under Customer Notifications, click Order Confirmation.
Click “Edit Code.”
You’ll see the HTML and Liquid code that controls the email content.
Add the script below to be able to control whether the order has preorder products or not
{% comment %}
Add the script below to be able to control whether the order has preorder products or not
{% endcomment %}
{% assign preorder = false %}
{% for line in line_items %}
{% if line.properties._is_fabrikator_preorder %}
{% assign preorder = true %}
{% break %}
{% endif %}
{% endfor %}{% comment %}
Once you add the snippet above, you can add any custom text to the email via the control below.
{% endcomment %}
{% if preorder %}
You can add any text under this if condition. This text will be visible only if the order contains preorder
{% endif %}Be sure shipment date is visible in order confirmation email
{% comment %}
SOMEWHERE INSIDE {% for line in subtotal_line_items %} loop,
make sure that the properties are visible and _is_fabrikator_preorder is hidden via the code below.
{% endcomment %}
{% for p in line.properties %}
{% if p.first != '_is_fabrikator_preorder' %}
<br/>
<span style="font-size:14px;">: </span>
</br>
{% endif %}
{% endfor %}Save Changes.
Click Save to apply the update. Test the email by placing a test order with a backordered item.