Template code generator

Free Shopify Order Printer templates and code generator

Generate paste-ready Shopify Order Printer template code for packing slips, invoices, 4x6 prints, and common Liquid field edits.

Shopify Order Printer templates Start from a paste-ready packing slip or invoice template before adding barcode, metafield, VAT, PO, or HS code fields.

Quick answer

Free Shopify Order Printer templates and code generator for Shopify Order Printer

Generate a starter template and use the install notes as a safe first pass. Start in a duplicate Shopify Order Printer template, paste the Liquid in the right placement area, and preview with real orders before saving.

  1. Choose the closest starter template and copy the generated code.
  2. Create a new Order Printer template so your existing invoice stays untouched.
  3. Paste the code and preview it with a normal order, a multi-item order, and an order with missing optional fields.

Copy-ready example

Starter Liquid pattern

Use this as a visible pattern, then use the generator below to adjust the exact field, fallback text, layout, and test notes.

<style>
  @page { size: 4in 6in; margin: 0.12in; }
  body { font-family: Arial, sans-serif; font-size: 11px; }
</style>
<strong>{{ order.name }}</strong>
{% for line_item in line_items %}
  <p>{{ line_item.quantity }} x {{ line_item.title }}</p>
{% endfor %}

Next template fixes

Check the adjacent field problem before rewriting the whole template.

If this snippet does not match the real Shopify order data, the next issue is usually a metafield owner, a line item property, or a starter template placement problem.

Packing slip template code

Shopify packing slip template code for Order Printer

Best for stores that want a warehouse-friendly packing slip without a monthly PDF invoice app.

Open this fix

Metafield Liquid generator

Add metafields to Shopify Order Printer

Best for merchants adding product specs, HS codes, country of origin, VAT notes, wholesale fields, or customer fields to printed documents.

Open this fix

Line item properties

Show Shopify line item properties in Order Printer

Best for merchants whose product options, personalization notes, bundle details, or gift messages are stored as line item properties instead of metafields.

Open this fix

Free first, fix when needed

Use the generator for the first safe test.

Generate a starter template and use the install notes as a safe first pass. If the snippet works alone but your real Shopify Order Printer template has custom loops, tables, print CSS, app fields, or compliance-sensitive wording, send the current template for a scoped fix.

Ask for a merge when the current template already has custom tables, app fields, or print CSS.

Template code generator

Free Shopify Order Printer templates and code generator

Generate a starter template and use the install notes as a safe first pass.

This starter uses 4in x 6in print CSS. Browser print dialogs and thermal printer drivers can still add margins.
Standard order with one clear product row.
Need this 4x6 layout adjusted for your printer?

Thermal printers, browser scaling, long titles, and addresses can all change the fit, so the fix is scoped around your real label output.

Adjust this 4x6 layout
Validate a 4x6 starter pack

Use this when the free starter is close but you want a polished 4x6 template pack before custom work.

Request 4x6 starter pack

Need more than code snippets?

Generated Liquid

Copy-paste code

<style>
  @page {
    size: 4in 6in;
    margin: 0.12in;
  }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.3;
    color: #111;
  }

  .opk-slip {
    width: 100%;
  }

  .opk-header,
  .opk-ship-to,
  .opk-items {
    border-bottom: 1px solid #111;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .opk-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .opk-order-name {
    font-size: 18px;
    font-weight: 700;
  }

  .opk-barcode {
    max-width: 1.5in;
    text-align: right;
  }

  .opk-items table {
    width: 100%;
    border-collapse: collapse;
  }

  .opk-items th,
  .opk-items td {
    padding: 4px 0;
    text-align: left;
    vertical-align: top;
  }

  .opk-qty {
    width: 28px;
    font-weight: 700;
  }

  .opk-item-title {
    overflow-wrap: anywhere;
  }

  .opk-sku {
    width: 82px;
    font-size: 10px;
  }

  .opk-muted {
    color: #555;
  }
</style>

<div class="opk-slip">
  <div class="opk-header">
    <div>
      <div class="opk-order-name">{{ order.name }}</div>
      <div>{{ order.created_at | date: "%b %d, %Y" }}</div>
    </div>
    <div class="opk-barcode">
      <s-barcode value="{{ order.name }}" />
    </div>
  </div>

  <div class="opk-ship-to">
    <strong>Ship to</strong><br>
    {{ shipping_address.name }}<br>
    {{ shipping_address.address1 }}{% if shipping_address.address2 != blank %}, {{ shipping_address.address2 }}{% endif %}<br>
    {{ shipping_address.city }}, {{ shipping_address.province_code }} {{ shipping_address.zip }}<br>
    {{ shipping_address.country }}
  </div>

  <div class="opk-items">
    <table>
      <thead>
        <tr>
          <th class="opk-qty">Qty</th>
          <th>Item</th>
          <th>SKU</th>
        </tr>
      </thead>
      <tbody>
        {% for line_item in line_items %}
          <tr>
            <td class="opk-qty">{{ line_item.quantity }}</td>
            <td class="opk-item-title">{{ line_item.title }}</td>
            <td class="opk-sku">{{ line_item.sku | default: "No SKU" }}</td>
          </tr>
        {% endfor %}
      </tbody>
    </table>
  </div>

  {% if note != blank %}
    <div class="opk-note">
      <strong>Order note</strong><br>
      {{ note }}
    </div>
  {% endif %}
</div>

Install wizard

Place the snippet before testing output.

1
Template area

New full template

2
Paste target

Replace a duplicate 4x6 test template, not the live invoice first.

3
Test order

One, three, and five item orders on the target printer

Paste location

Use this as a duplicate full template first, then tune margins in the browser and printer driver.

Test checklist

  • Duplicate the Shopify Order Printer template before editing the live one.
  • Preview with the regular order.
  • Test actual size or 100% scale before fit-to-page in the print dialog.
  • Print or save one test preview before using the template in production.

Common failure

  • Replacing a working template without saving a backup first.
  • Adding custom fields before the base invoice or packing slip prints cleanly.
  • Using variables from theme Liquid that are not available in Order Printer templates.

Mock preview

#1048|||| ||| ||||
Avery Chen
218 Market Street, Austin, TX
2Blue ceramic mugMUG-BLUE-01

Pack with care. Gift note included.

Use case

When to use this tool

Best for merchants searching Shopify Order Printer templates or template code they can paste into Shopify without installing a full invoice app.

Starts with a real printable Order Printer template instead of a generic article.

Covers the searches behind Shopify Order Printer templates, free template code, packing slip code, and invoice starter code.

Keeps the workflow inside Shopify Order Printer for merchants who do not need another PDF invoice app yet.

Links to barcode, metafield, line item property, VAT, PO, HS code, and 4x6 tools for specific edits.

Explains that a starter template should be tested before adding custom fields, app data, or compliance-heavy invoice wording.

Gives a low-risk path from free starter code to a scoped manual fix when the existing template is too customized.

Free tool fit

Use the snippet when the edit is narrow.

Generate a starter template and use the install notes as a safe first pass.

  • You know which Shopify Order Printer template you want to edit.
  • You can test in a duplicate template before touching the live one.
  • The field or layout change maps to the Liquid objects listed on this page.

Manual fix fit

Request help when placement is risky.

Send your current template and get a scoped version adjusted for your document type.

  • Your current template already has custom loops, tables, CSS, or app-specific fields.
  • The snippet works in isolation but prints blank, repeats, or breaks layout in your real template.
  • The document is customer-facing, B2B, VAT, customs, or warehouse-critical and needs careful test notes.

Install steps

Copy into Shopify Order Printer carefully.

The preview uses sample data. Always test the template with real orders before using it for fulfillment, accounting, customs, or customer-facing documents.

  1. Step Choose the closest starter template and copy the generated code.
  2. Step Create a new Order Printer template so your existing invoice stays untouched.
  3. Step Paste the code and preview it with a normal order, a multi-item order, and an order with missing optional fields.
  4. Step Add barcode, metafield, VAT, PO, HS code, or line item property snippets only after the base layout prints correctly.
  5. Step Keep the old template available until the duplicate template has been tested with real packing and invoice scenarios.

Problem diagnosis

Match the symptom before changing Liquid.

Use these checks to decide whether the issue is field data, snippet placement, print settings, or a template merge problem.

You searched for Shopify Order Printer templates but only need one field fixed.

Likely cause
The existing template probably works, but one barcode, metafield, line item property, PO number, VAT ID, or customs field is missing.
Fix
Use the starter generator only as a safe duplicate, then jump to the exact field page instead of rebuilding the whole template.

The starter code works but your current template breaks when you paste it in.

Likely cause
The live template may already have custom tables, app-specific loops, print CSS, or nested conditions.
Fix
Merge one small snippet at a time, or request a scoped code fix with the current template and one clear change.

You need invoice emails, hosted PDFs, bulk print, or customer downloads.

Likely cause
That is a repeat document workflow rather than a one-template Order Printer code edit.
Fix
Use a full invoice app for automation, and keep OrderPrintKit for small Order Printer template fields or layout fixes.

FAQ

Common Shopify Order Printer issues

Is this a Shopify app?

No. It is an independent code tool for Shopify Order Printer templates.

Should I overwrite my current template?

No. Create a duplicate or new template first, then test with real orders before replacing anything.

Can this generate invoice and packing slip templates?

It can create starter code and point you to specific snippets. Polished full templates are better handled as a code fix.

Is this a free Shopify Order Printer template?

It is free starter code for Shopify Order Printer. Test it in a duplicate template, then add only the exact barcode, metafield, note, VAT, PO, or customs fields you need.

When should I use an invoice app instead?

Use an invoice app when you need automated PDF delivery, invoice emails, hosted customer documents, bulk export, e-invoicing, or repeat tax workflows.

Related exact fixes

Follow the next likely Order Printer problem.

These links connect adjacent search intents, such as blank metafields, item-level customs fields, B2B invoice data, and one-off template fixes.

Barcode snippet generator

Add a barcode to a Shopify packing slip

Best for merchants who need a scannable order number, SKU, variant barcode, or tracking number on a packing slip without installing a full PDF invoice app or bulk barcode label app.

Add a barcode to a Shopify packing slip

Metafield Liquid generator

Add metafields to Shopify Order Printer

Best for merchants adding product specs, HS codes, country of origin, VAT notes, wholesale fields, or customer fields to printed documents.

Add metafields to Shopify Order Printer

Line item properties

Show Shopify line item properties in Order Printer

Best for merchants whose product options, personalization notes, bundle details, or gift messages are stored as line item properties instead of metafields.

Show Shopify line item properties in Order Printer

Common Order Printer fixes

Keep editing the same Shopify template.

These are the highest-signal internal paths for merchants who need template code, packing slip layout, barcodes, metafields, or 4x6 print fixes.

Liquid objects

Fields this page usually touches

  • order
  • line_items
  • shipping_address
  • billing_address
  • transactions
  • tax_lines

Common errors

Watch these before saving

  • Replacing a working template without saving a backup first.
  • Adding custom fields before the base invoice or packing slip prints cleanly.
  • Using variables from theme Liquid that are not available in Order Printer templates.
  • Choosing a full invoice app when the real problem is one Order Printer Liquid path, loop placement, or print CSS issue.
  • Starting from a blank template and then adding barcode, metafield, VAT, or customs fields before the item loop is proven.

Limits

What this does not replace

  • This page provides starter code, not a full visual invoice designer.
  • Automatic installation into Shopify admin is intentionally out of scope for the first version.
  • Complex accounting, VAT, or customs rules need merchant review.
  • Full PDF automation, invoice email delivery, hosted downloads, and bulk export still belong in full invoice apps.