Created
July 30, 2026 06:05
-
-
Save ellie250/673fc85b904c0ba25c732692ae9fa317 to your computer and use it in GitHub Desktop.
Packing Slip ShipStation Simple Bundles v2 with item properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <style> | |
| * { | |
| font-family: arial; | |
| font-size: 12px; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| margin: 0; | |
| width: 8.5in; | |
| height: 11in; | |
| position: relative; | |
| } | |
| .content-wrapper { | |
| padding-bottom: 1.5in; | |
| } | |
| th { | |
| color: white; | |
| font-weight: bold; | |
| background-color: gray; | |
| } | |
| td { | |
| vertical-align: top; | |
| } | |
| .store-info div { | |
| font-size: 1.2em; | |
| } | |
| .store-info div.company-name { | |
| font-size: 1.5em; | |
| font-weight: bold; | |
| } | |
| table.order-info td { | |
| padding: 2px 4px; | |
| } | |
| table.order-info td.label { | |
| font-weight: bold; | |
| text-align: right; | |
| border-right: solid 1px #c0c0c0; | |
| } | |
| table.line-items { | |
| margin-top: 0.1in; | |
| padding: 0.1in 0in 0.1in 0in; | |
| } | |
| table.line-items th { | |
| padding: 2px; | |
| white-space: nowrap; | |
| } | |
| table.footer { | |
| border-top: solid 1px #707070; | |
| } | |
| table.footer td.label { | |
| font-weight: bold; | |
| text-align: right; | |
| } | |
| td.notes { | |
| padding: 0.1in; | |
| font-style: italic; | |
| } | |
| .barcode { | |
| font-family: "CCode128_S3"; | |
| font-size: 36px; | |
| } | |
| .qr { | |
| bottom: 0.2in; | |
| left: 0; | |
| right: 0; | |
| text-align: center; | |
| width: 100%; | |
| } | |
| .qr img { | |
| margin: 0 auto; | |
| } | |
| {% unless settings.show_prices %} | |
| .price { display: none } | |
| {% endunless %} | |
| {% unless settings.show_skus %} | |
| .sku { display: none } | |
| {% endunless %} | |
| {% unless settings.show_item_locations %} | |
| .location_ssreserved { display: none } | |
| {% endunless %} | |
| </style> | |
| </head> | |
| <body> | |
| <div class="content-wrapper" style="width:100%;"> | |
| <table cellspacing="0" cellpadding="2" border="0" style="width:100%"> | |
| <thead> | |
| <tr> | |
| <th>Packing Slip</th> | |
| </tr> | |
| </thead> | |
| </table> | |
| <table cellspacing="0" cellpadding="2" border="0" style="width:100%"> | |
| <tbody> | |
| <tr> | |
| <td colspan="2" style="width:4.5in" class="store-info"> | |
| <div class="company-name">{{ store.company_name }}</div> | |
| {% if warehouse.name %} | |
| <div>{{ warehouse.name }}</div> | |
| {% endif %} | |
| <div> | |
| {% if warehouse.street_1 %} | |
| {{ warehouse.street_1 }} | |
| <br> | |
| {% endif %} | |
| {% if warehouse.street_2 %} | |
| {{ warehouse.street_2 }} | |
| <br> | |
| {% endif %} | |
| {% if warehouse.city %} | |
| {{ warehouse.city }}, | |
| {{ warehouse.state }} | |
| {{ warehouse.postal_code }} | |
| {% endif %} | |
| </div> | |
| </td> | |
| <td style="width:3in" align="right" valign="top"> | |
| {% if settings.show_logo and store.logo_url %} | |
| <img | |
| src="http://src.shipstation.com/150/60/{{ store.logo_url }}" | |
| alt="" | |
| style="max-width:300px; max-height:80px;" | |
| > | |
| {% endif %} | |
| </td> | |
| </tr> | |
| <tr> | |
| <td style="height:0.15in"></td> | |
| </tr> | |
| <tr> | |
| <td align="right" style="width:1in"><b>Ship To:</b></td> | |
| <td style="width:3.5in; font-size:14px;"> | |
| <div>{{ recipient.name }}</div> | |
| {% if recipient.company %} | |
| <div>{{ recipient.company }}</div> | |
| {% endif %} | |
| {% if recipient.street_1 %} | |
| <div>{{ recipient.street_1 }}</div> | |
| {% endif %} | |
| {% if recipient.street_2 %} | |
| <div>{{ recipient.street_2 }}</div> | |
| {% endif %} | |
| {% if recipient.street_3 %} | |
| <div>{{ recipient.street_3 }}</div> | |
| {% endif %} | |
| <div> | |
| {{ recipient.city }}, {{ recipient.state }} | |
| {{ recipient.postal_code }} | |
| {{ recipient.country }} | |
| </div> | |
| </td> | |
| <td style="width:2.5in"> | |
| <table cellspacing="0" border="0" class="order-info"> | |
| <tr> | |
| <td class="label">Order #</td> | |
| <td class="value">{{ order.order_number }}</td> | |
| </tr> | |
| <tr> | |
| <td class="label">Date</td> | |
| <td class="value">{{ order.order_date }}</td> | |
| </tr> | |
| <tr> | |
| <td class="label">User</td> | |
| <td class="value">{{ order.username }}</td> | |
| </tr> | |
| <tr> | |
| <td class="label">Ship Date</td> | |
| <td class="value">{{ order.ship_date }}</td> | |
| </tr> | |
| </table> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <table cellspacing="0" cellpadding="2" border="0" style="width:100%" class="line-items"> | |
| <thead> | |
| <tr> | |
| <th style="text-align:left; width:1.5in" class="sku">Item</th> | |
| <th style="text-align:left">Description</th> | |
| <th style="text-align:right; width:0.75in" class="price">Price</th> | |
| <th style="text-align:center; width:0.75in">Qty</th> | |
| <th style="text-align:center" class="location_ssreserved">Location</th> | |
| <th style="text-align:right; width:0.75in" class="price">Ext. Price</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <!-- Simple Bundles capture bundles in order --> | |
| {% assign order_bundles = '' %} | |
| {% for item in items %} | |
| {% unless item.options contains 'sb bundle group:' %}{% continue %} {% endunless %} | |
| {% assign bundle_id = item.options | split: 'sb bundle group:' | last | split: '(' | first | strip %} | |
| {% if order_bundles contains bundle_id %} {% continue %} {% endif %} | |
| {% assign bundle_title = item.options | split: 'sb bundle title:' | last | split: 'sb bundle group' | first | remove_last: ',' | strip %} | |
| {% assign order_bundles = order_bundles | |
| | append: bundle_id | |
| | append: '&&' | |
| | append: bundle_title | |
| | append: '||' | |
| %} | |
| {% endfor %} | |
| {% assign order_bundles = order_bundles | split: '||' %} | |
| <!-- Simple Bundles show bundles in order --> | |
| {% assign shown_bundle = false %} | |
| {% for sbundle in order_bundles %} | |
| {% if sbundle == blank %}{% continue %}{% endif %} | |
| {% assign bundle_title = sbundle | split: '&&' | last %} | |
| {% assign bundle_id = sbundle | split: '&&' | first %} | |
| {% assign shown_bundle = true %} | |
| <tr> | |
| <th colspan="100%" style="text-align:left;">BUNDLE: {{ bundle_title }}</th> | |
| </tr> | |
| {% for item in items %} | |
| {% unless item.options contains 'sb bundle group:' %}{% continue %} {% endunless %} | |
| {% if item.options contains bundle_id %} | |
| {% if hide_zero_quantity_items == false or item.quantity > 0 %} | |
| {% if show_discounts or item.is_adjustment == false %} | |
| <tr> | |
| <td style="text-align:left" class="sku">{{ item.sku }}</td> | |
| <td style="text-align:left"> | |
| {{ item.title }} | |
| {% comment %} Keep options hidden | |
| {% if item.options %} | |
| <br> | |
| {{ item.options }} | |
| {% endif %} | |
| {% endcomment %} | |
| </td> | |
| <td style="text-align:right" class="price">{{ item.unit_price }}</td> | |
| <td style="text-align:center">{{ item.quantity }}</td> | |
| <td style="text-align:center" class="location_ssreserved"> | |
| {% for loc in item.inventory_locations %} | |
| {% if loc.allocated %} | |
| ( | |
| {{ loc.allocated }} | |
| ) | |
| {% endif %} | |
| {{ loc.location }} | |
| {% unless forloop.last %} | |
| <br> | |
| {% endunless %} | |
| {% endfor %} | |
| </td> | |
| <td style="text-align:right" class="price">{{ item.extended_price }}</td> | |
| </tr> | |
| {% endif %} | |
| {% endif %} | |
| {% endif %} | |
| {% endfor %} | |
| {% endfor %} | |
| <!-- Normal items table --> | |
| {% assign shown_title = false %} | |
| {% for item in items %} | |
| {% if item.options contains 'sb bundle group:' %}{% continue %} {% endif %} | |
| {% if hide_zero_quantity_items == false or item.quantity > 0 %} | |
| {% if show_discounts or item.is_adjustment == false %} | |
| {% if shown_title == false and shown_bundle == true %} | |
| <tr> | |
| <th colspan="100%" style="text-align:left;">OTHERS:</th> | |
| </tr> | |
| {% assign shown_title = true %} | |
| {% endif %} | |
| <tr> | |
| <td style="text-align:left" class="sku">{{ item.sku }}</td> | |
| <td style="text-align:left"> | |
| {{ item.title }} | |
| {% if item.options %} | |
| <br> | |
| {{ item.options }} | |
| {% endif %} | |
| </td> | |
| <td style="text-align:right" class="price">{{ item.unit_price }}</td> | |
| <td style="text-align:center">{{ item.quantity }}</td> | |
| <td style="text-align:center" class="location_ssreserved"> | |
| {% for loc in item.inventory_locations %} | |
| {% if loc.allocated %} | |
| ( | |
| {{ loc.allocated }} | |
| ) | |
| {% endif %} | |
| {{ loc.location }} | |
| {% unless forloop.last %} | |
| <br> | |
| {% endunless %} | |
| {% endfor %} | |
| </td> | |
| <td style="text-align:right" class="price">{{ item.extended_price }}</td> | |
| </tr> | |
| {% endif %} | |
| {% endif %} | |
| {% endfor %} | |
| </tbody> | |
| </table> | |
| <table cellspacing="0" cellpadding="2" border="0" style="width:100%" class="footer"> | |
| <tbody> | |
| <tr> | |
| <td rowspan="4" class="notes">{{ order.notes_to_buyer }}</td> | |
| <td align="right" style="width:1in" class="label price">Sub Total:</td> | |
| <td style="width:0.75in" align="right" class="price">{{ order.items_total }}</td> | |
| </tr> | |
| <tr class="tax"> | |
| <td align="right" class="label price">Tax:</td> | |
| <td style="width:0.75in" align="right" class="price">{{ order.tax_paid }}</td> | |
| </tr> | |
| <tr> | |
| <td align="right" class="label price">Shipping:</td> | |
| <td style="width:0.75in" align="right" class="price">{{ order.shipping_paid }}</td> | |
| </tr> | |
| <tr> | |
| <td align="right" class="label price">Total:</td> | |
| <td style="width:0.75in" align="right" class="price">{{ order.order_total }}</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| {% if store.packing_slip_message %} | |
| <p> | |
| <i>{{ store.packing_slip_message }}</i> | |
| </p> | |
| {% endif %} | |
| {% if settings.show_barcode and order.barcode %} | |
| <p style="text-align:center"> | |
| <span class="barcode" style="white-space:nowrap;">{{ order.barcode }}</span> | |
| </p> | |
| {% endif %} | |
| </div> | |
| {% if settings.show_return_qrcode and order.return_url %} | |
| <div class="qr"> | |
| <p style="text-align:center">Scan the QR code to start a Return</p> | |
| {% qr width: 100, height: 100 %} | |
| {{ order.return_url }} | |
| {% endqr %} | |
| </div> | |
| {% endif %} | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment