79294308

Date: 2024-12-19 12:38:17
Score: 1
Natty:
Report link

We can simply add this code to show the barcode in the email template:

{% if line.variant.barcode != blank %}
   <span class="order-list__item-variant">Barcode: {{ line.variant.barcode }}</span>
{% endif %}

Under:

{% for line in subtotal_line_items %}

So, It should look like:

{% for line in subtotal_line_items %}
    <!-- Some Code -->
    
    {% if line.variant.barcode != blank %}
        <span class="order-list__item-variant">Barcode: {{ line.variant.barcode }}</span>
    {% endif %}

    <!-- Some Code -->
{% endfor %}

Reference: https://help.shopify.com/en/manual/fulfillment/setup/notifications/email-variables#line-item

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zohaib Ali Memon