Hi I am not html literate, I’m a dressmaker, but I have tried my hardest to fix my code so my template looks the same as it used to in order printer legacy. Please please if anyone can check my code below and fix it for me I would be ever so grateful! I tried to add photos but it only allows CSV which I don’t even know what that is…
The things that don’t seem to be working are as follows
the “ship to” section is missing along with the customers name and address
the shipping cost is missing
the gst is missing
please see code below
{% assign primary_font = “Lato”%}
{% assign primary_font_color = “#000000” %}
{% assign primary_font_size = “12px”%}
{% assign secondary_font = “Lato”%}
{% assign secondary_font_color = “#333333” %}
{% assign theme_color = “#303336”%}
/* ### BASE - PAGE SIZING AND MARGIN SETUP NORMALIZATION ACROSS BROWSERS ### */ @Page { margin: 12mm !important; margin-top: 12mm !important; margin-right: 12mm !important; margin-bottom: 12mm !important; margin-left: 12mm !important; } @media print { .safari { padding-top: 15px; box-sizing: border-box; } .printer-preview-content .printer-preview-content { padding-left: 15px; padding-right: 15px; box-sizing: border-box; } } @media screen { .printer-preview-content { padding: 16px 0; min-height: 800px; /* background-image: url([http://basehold.it/i/16](http://basehold.it/i/16)) */ } .printer-preview-content .printer-preview-content { margin-right: auto; margin-left: auto; max-width: 680px; } } @media screen,print { /* ### BASE - TYPOGRAPHY AND REMOVAL OF STANDARD SHOPIFY STYLING ### */ .printer-preview-content .t62054 * { color: {{ secondary_font_color }}; font-family: '{{ primary_font }}'; font-size: {{ primary_font_size }}; font-weight: 400; line-height: 16px; text-rendering: optimizeLegibility; margin: 0 0 0 0; padding: 0 0 0 0; -webkit-print-color-adjust: exact; overflow: visible !important; } .printer-preview-content .t62054 h1 { font-size: 28px; line-height: 32px; } .printer-preview-content .t62054 h2 { font-size: 18px; line-height: 32px; } .printer-preview-content .t62054 h3 { font-size: 14px; line-height: 16px; } .printer-preview-content .t62054 h1, .printer-preview-content .t62054 h2, .printer-preview-content .t62054 h3 { margin-bottom: 16px; } .printer-preview-content .t62054 a, .printer-preview-content .t62054 a * { text-decoration: none !important; } .printer-preview-content .t62054 b, .printer-preview-content .t62054 b * { font-weight: bold; } .printer-preview-content .t62054 .text-right { text-align: right; } .printer-preview-content .t62054 .text-center { text-align: center; } .printer-preview-content .t62054 .no-wrap { white-space: nowrap; } /* ### BASE - GRID AND RE-USABLE LAYOUT COMPONENTS ### */ .printer-preview-content .t62054 .row { width: 100%; display: block; clear: both; } .printer-preview-content .t62054 .row:after { content: ""; display: table; clear: both; } .printer-preview-content .t62054 .col-xs-1, .printer-preview-content .t62054 .col-xs-2, .printer-preview-content .t62054 .col-xs-3, .printer-preview-content .t62054 .col-xs-4, .printer-preview-content .t62054 .col-xs-5, .printer-preview-content .t62054 .col-xs-6, .printer-preview-content .t62054 .col-xs-7, .printer-preview-content .t62054 .col-xs-8, .printer-preview-content .t62054 .col-xs-9, .printer-preview-content .t62054 .col-xs-10, .printer-preview-content .t62054 .col-xs-11, .printer-preview-content .t62054 .col-xs-12 { float: left; min-height: 1px; margin-bottom: 32px; } .printer-preview-content .t62054 .col-xs-12 { width: 100%; } .printer-preview-content .t62054 .col-xs-11 { width: 91.66666667%; } .printer-preview-content .t62054 .col-xs-10 { width: 83.33333333%; } .printer-preview-content .t62054 .col-xs-9 { width: 75%; } .printer-preview-content .t62054 .col-xs-8 { width: 66.66666667%; } .printer-preview-content .t62054 .col-xs-7 { width: 58.33333333%; } .printer-preview-content .t62054 .col-xs-6 { width: 50%; } .printer-preview-content .t62054 .col-xs-5 { width: 41.66666667%; } .printer-preview-content .t62054 .col-xs-4 { width: 33.33333333%; } .printer-preview-content .t62054 .col-xs-3 { width: 25%; } .printer-preview-content .t62054 .col-xs-2 { width: 16.66666667%; } .printer-preview-content .t62054 .col-xs-1 { width: 8.33333333%; } .printer-preview-content .t62054 .col-no-margin { margin-bottom: 0 !important; } .printer-preview-content .t62054 .clear-fix { clear: both; } .printer-preview-content .t62054 .half-margin-top { margin-top: 8px !important; } .printer-preview-content .t62054 .half-margin-bottom { margin-bottom: 8px !important; } .printer-preview-content .t62054 .margin-bottom { margin-bottom: 16px !important; margin-top: 1px; } .printer-preview-content .t62054 .margin-top { margin-top: 16px !important; } .printer-preview-content .t62054 .double-margin-top { margin-top: 32px !important; } .printer-preview-content .t62054 .double-margin-bottom { margin-bottom: 32px !important; } .printer-preview-content .t62054 .strikethrough { text-decoration: line-through !important; } /* ### BASE - TABLE STYLING ### */ .printer-preview-content .t62054 table, .printer-preview-content .t62054 .table { width: 100%; max-width: 100%; background-color: transparent; border-collapse: collapse; } .printer-preview-content .t62054 table thead { display: table-row-group; } .printer-preview-content .t62054 table tbody tr { page-break-inside:avoid !important; page-break-after:auto !important; } .printer-preview-content .t62054 table tbody tr td { page-break-inside:avoid !important; } .printer-preview-content .t62054 th { white-space: nowrap; text-align: left; vertical-align: middle; border-top: 0; border-bottom: 0; } .printer-preview-content .t62054 td { vertical-align: middle; border-top: 0; border-bottom: 0; } .printer-preview-content .t62054 .order-table tbody > tr:nth-child(odd) td { background-color: #f9f9f9; } .printer-preview-content .t62054 .pricing-table tbody > tr:nth-child(even) > td { background-color: #f9f9f9; } /* .printer-preview-content .t62054 .pricing-table tbody > tr > td.pricing-table-title { word-break: break-all; }*/ .printer-preview-content .t62054 th.order-table-qty { width: 10%; } .printer-preview-content .t62054 th.order-table-price { width: 10%; } .printer-preview-content .t62054 th.order-table-item-total, .printer-preview-content .t62054 th.order-table-reason { width: 17%; } .printer-preview-content .t62054 th.order-table-return-comments { width: 30%; } .printer-preview-content .t62054 .pricing-table-text { text-align: right; white-space: nowrap; } /* ### BASE - PRODUCT IMAGE SIZING TO RETAIN LINE HEIGHT RYTHM) ### */ .printer-preview-content .t62054 .product-image-wrapper { width: 64px; max-height: 64px; } .printer-preview-content .t62054 .product-image { padding: 0 4px; page-break-inside:avoid !important; max-width: 64px; } /* ### BASE - LISTS RESET ### */ .printer-preview-content .t62054 ul { list-style: none; } .printer-preview-content .t62054 li { color: {{ secondary_font_color }}; list-style: none; } /* ### BASE - LOGO ### */ .printer-preview-content .t62054 .logo-wrapper { display: inline-block; width: 100%; padding-bottom: 8px; } .printer-preview-content .t62054 .logo { float: left; padding-right: 15px; max-width: 100%; max-height: 188.0px; } /* ### BASE - BARCODE ### */ .printer-preview-content .t62054 .order-number-barcode, .printer-preview-content .t62054 .product-barcode { display: block; } /* ### BASE - ADDITONAL COMMON SHARED TYPOGRAPHY AND ALIGNMENT ### */ .printer-preview-content .t62054 .address { margin-right: 5%; } .printer-preview-content .t62054 .col-xs-8 .notes, .printer-preview-content .t62054 .col-xs-6 .notes { margin-right: 20%; } .printer-preview-content .t62054 .notes-title, .printer-preview-content .t62054 .return-codes { margin: 8px 0; } /* ### BASE - HORIZONTAL RULE MARKS ### */ .printer-preview-content .t62054 hr { background: {{ theme_color }}; border-top: 0; border: 0; height: 2px; width: 100%; margin-bottom: -2px; } } @media screen,print { /* ### DESIGN SPECIFIC - TYPOGRAPHY ### */ .printer-preview-content .t62054 h1 { font-family: '{{ secondary_font }}'; color: {{ primary_font_color }}; font-weight: bold; } .printer-preview-content .t62054 h2 { font-family: '{{ secondary_font }}'; color: {{ primary_font_color }}; } .printer-preview-content .t62054 h3 { font-family: '{{ secondary_font }}'; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - LOGO POSITIONING ### */ .printer-preview-content .t62054 .logo { float: right; padding-right: 0; margin-bottom: 16px; } /* ### DESIGN SPECIFIC - STORE DETAILS ### */ .printer-preview-content .t62054 .shop-block { text-align: center; } .printer-preview-content .t62054 .shop-block .shop-address-block b, .printer-preview-content .t62054 .shop-block .shop-address-block b * { color: {{ primary_font_color }}; } .printer-preview-content .t62054 .shop-block .shop-domain { font-weight: bold; } .printer-preview-content .t62054 .shop-return-address b, .printer-preview-content .t62054 .shop-return-address b * { color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - ORDER DETAILS ### */ .printer-preview-content .t62054 .order-details-title { display: inline-block; font-weight: bold; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - BILL TO AND SHIP TO ADDRESS ### */ .printer-preview-content .t62054 .address-title { font-weight: bold; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - TABLE HEADER ### */ .printer-preview-content .t62054 .order-table thead tr th { padding-left: 4px; padding-right: 4px; border-top: 2px solid {{ theme_color }}; padding-top: 6px; border-bottom: 2px solid {{ theme_color }}; padding-bottom:6px; font-weight: bold; } /* ### DESIGN SPECIFIC - TABLE BODY (SHARED) ### */ .printer-preview-content .t62054 .order-table tbody tr td, .printer-preview-content .t62054 .pricing-table tbody tr td { padding-left: 4px; padding-right: 4px; border-top: 0; padding-top: 8px; border-bottom: 1px solid #efefef; padding-bottom:7px; } /* ### DESIGN SPECIFIC - ORDER TABLE SPECIFIC ### */ .printer-preview-content .t62054 .order-table tbody > tr > td.line-item-description, .printer-preview-content .t62054 .order-table tbody > tr > td.line-item-qty { font-weight: bold; color: {{ primary_font_color }}; } .printer-preview-content .t62054 .order-table tbody > tr > td.line-item-description p.line-item-sku { font-weight: normal; } /* ### DESIGN SPECIFIC - PRICING TABLE SPECIFIC ### */ .printer-preview-content .t62054 .pricing-table tbody > tr.pricing-table-total-row > td { border-top: 2px solid {{ theme_color }}; border-bottom: 2px solid {{ theme_color }}; padding-bottom:6px; } .printer-preview-content .t62054 .pricing-table tbody > tr > td.pricing-table-title, .printer-preview-content .t62054 .pricing-table tbody > tr > td.pricing-table-title span { font-weight: bold; color: {{ primary_font_color }}; } .printer-preview-content .t62054 .pricing-table tbody > tr.pricing-table-total-row .pricing-table-title, .printer-preview-content .t62054 .pricing-table tbody > tr.pricing-table-total-row .pricing-table-text { font-weight: bold; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - ORDER NOTES ### */ .printer-preview-content .t62054 .notes-title { font-weight: bold; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - RETURN FORM REASON CODES ### */ .printer-preview-content .t62054 .return-codes b, .printer-preview-content .t62054 .return-code b * { font-weight: bold; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - THANK YOU MESSAGE ### */ .printer-preview-content .t62054 .thanks-text { text-align: center; font-weight: bold; color: {{ primary_font_color }}; } .printer-preview-content .t62054 .thanks-text * { font-weight: bold; color: {{ primary_font_color }}; } /* ### DESIGN SPECIFIC - GIFT MESSAGE ### */ .printer-preview-content .t62054 .gift-text { text-align: center; font-weight: bold; width: 80%; margin: 0 10%; padding-bottom:16px; font-size: 18px; } .printer-preview-content .t62054 .gift-text * { font-weight: bold; font-size: 18px; } .printer-preview-content .t62054 .gift-text svg { padding-bottom:8px; } /* ### DESIGN SPECIFIC - TERMS AND CONDITIONS ### */ .printer-preview-content .t62054 .terms-text { font-size: 10px; text-align: center; } .printer-preview-content .t62054 .terms-text * { font-size: 10px; } /* ### DESIGN SPECIFIC - SOCIAL ICONS ### */ .printer-preview-content .t62054 .social-icons { display: inline; width: 20px; margin: 8px 4px; } }Tax Invoice
ABN 13145990412
-
Invoice No.
{{order.order_name }}
-
Order Date
{{order.created_at | date: “%d %B, %Y” }}
-
Payment
{{ transaction_text }}
-
Shipping
{{order.shipping_method.title }}
{% assign transaction_text = “” %}
{% for transaction in transactions %}
{% if transaction.status != “failure” and transaction.status != “error” %}
{% if transaction.kind == “authorization” or transaction.kind == “sale” %}
{% if transaction.payment_details.credit_card_number %}
{% capture t_text %}{{ transaction.payment_details.credit_card_company }} ({{ transaction.payment_details.credit_card_number | replace: " ", “” | replace: “•”, “”}}){% endcapture %}
{% else %}
{% capture t_text %}{{ transaction.gateway | replace: “_”, " " | capitalize }}{% endcapture %}
{% endif %}
{% unless transaction_text contains t_text %}
{% if transaction_text != blank %}
{% assign transaction_text = transaction_text | append: ", " %}
{% endif %}
{% assign transaction_text = transaction_text | append: t_text %}
{% endunless %}
{% endif %}
{% endif %}
{% endfor %}
{% if transaction_text != blank and transaction_text != “manual” %}
{% endif %}
- {{ billing_address.name }}
- {{ billing_address.company }}
- {{ billing_address.address1 }}
- {{ billing_address.address2 }}
- {{ billing_address.city }}, {% if billing_address.province_code != blank %}{{ billing_address.province_code }}{% else %}{{ billing_address.province }}{% endif %} {{ billing_address.zip | upcase }}
- {{ billing_address.country }}
- {{ customer.name }}
- {{ customer.default_address.company }}
- {{ customer.default_address.address1 }}
- {{ customer.default_address.address2 }}
- {{ customer.default_address.city }}, {% if customer.default_address.province_code != blank %}{{ customer.default_address.province_code }}{% else %}{{ customer.default_address.province }}{% endif %} {{ customer.default_address.zip | upcase }}
- {{ customer.default_address.country }}
- {{ customer.name }}
- {{ customer.email }}
{% if billing_address and billing_address != blank %}
{% if billing_address.company != blank %}
{% endif %}
{% if billing_address.address2 != blank %}
{% endif %}
{% if shop.country != billing_address.country %}
{% endif %}
{% elsif customer != blank and customer.default_address != blank %}
{% if customer.default_address.company != blank %}
{% endif %}
{% if customer.default_address.address2 != blank %}
{% endif %}
{% if shop.country != customer.default_address.country %}
{% endif %}
{% elsif customer != blank %}
{% if customer.name != blank %}
{% endif %}
{% if customer.email != blank %}
{% endif %}
{% endif %}
{% if shipping_address and shipping_address != “” and shipping_address != nil %}
{% endif %}
- {{ shipping_address.name }}
- {{order.shipping_address.company }}
- {{ shipping_address.address1 }}
- {{ shipping_address.address2 }}
- {{ shipping_address.city }}, {% if shipping_address.province_code != blank %}{{ shipping_address.province_code }}{% else %}{{ shipping_address.province }}{% endif %} {{ shipping_address.zip | upcase }}
- {{ shipping_address.country }}
{% if order.shipping_address and shipping_address != blank %}
{% if order.shipping_address.company != blank %}
{% endif %}
{% if shipping_address.address2 != blank %}
{% endif %}
{% if shop.country != shipping_address.country %}
{% endif %}
{% endif %}
{% assign hidden_variant_ids = “” %}
{% for line_item in line_items %}
{% if line_item.properties._boldVariantIds %}
{% assign hidden_variant_ids = hidden_variant_ids | append: ‘,’ %}
{% assign hidden_variant_ids = hidden_variant_ids | append: line_item.properties._boldVariantIds %}
{% endif %}
{% endfor %}
{% assign hidden_variant_ids = hidden_variant_ids | split: ‘,’ %}
{% for line_item in line_items %}
{% assign non_refunded_quantity = line_item.quantity %}
{% if hidden_variant_ids contains line_item.variant_id %}{% continue %}{% endif %}
{% assign adjusted_item_price = line_item.price %}
{% assign adjusted_line_price = line_item.price | times: non_refunded_quantity %}
{% for line_item2 in line_items %}
{% if line_item.properties._boldVariantIds contains line_item2.variant_id %}
{% assign adjusted_item_price = adjusted_item_price | plus: line_item2.price %}
{% assign adjusted_line_option_price = line_item2.price | times: non_refunded_quantity %}
{% assign adjusted_line_price = adjusted_line_price | plus: adjusted_line_option_price %}
{% endif %}
{% endfor %}
{% assign product_tax = 0.0 %}
{% for tax in line_item.tax_lines %}
{% assign per_item_tax = tax.price | divided_by: line_item.quantity %}
{% assign product_tax = product_tax | plus: per_item_tax %}
{% endfor %}
{% endfor %}
| Item Description | Qty | Price | Total | |
|---|---|---|---|---|
| {% if line_item.image != blank %} |
{{ line_item.title | replace: " - Default Title", “” }} {% if line_item.sku != blank %} {{ line_item.sku }} {% endif %} {% for p in line_item.properties %} {% assign p_internal = p.first | slice: 0 %} {% unless p.first contains “builder_id” or p.first contains “builder_info” or p.first contains “master_builder” or p_internal == “_” or p.last == “” or p.last == blank %} {% if p.last contains “/uploads/” or p.last contains “.png?” or p.last contains “.jpg?” %} {{ p.first }}: {% else %} {{ p.first }}: {{ p.last | newline_to_br }} {% endif %} {% endunless %} {% endfor %} |
× {{ non_refunded_quantity }} |
{% if line_item.variant.price and line_item.variant.price > adjusted_item_price %} {% assign original_price = line_item.variant.price %} {% elsif line_item.variant.compare_at_price and line_item.variant.compare_at_price > adjusted_item_price %} {% assign original_price = line_item.variant.compare_at_price %} {% elsif line_item.total_discount and line_item.total_discount > 0 %} {% assign original_price = line_item.total_discount | divided_by: line_item.quantity | plus: adjusted_item_price %} {% else %} {% assign original_price = 0 %} {% endif %} {% if original_price > 0 and original_price > adjusted_item_price %}
{% endif %} {{ adjusted_item_price | money }} |
{{ adjusted_line_price | money }} |
{% if note != blank or attributes != blank %}
{% endif %}
{{ note | newline_to_br }}
{% if total_discounts != blank or total_discounts != 0.00 %}
{% endif %}
{% if total_tax != 0.00 and total_tax != blank %}
{% endif %}
{% assign total_refunds = 0.0 %}
{% for transaction in transactions %}
{% if transaction.kind == “refund” and transaction.status == “success” %}
{% assign total_refunds = total_refunds | plus: transaction.amount %}
{% endif %}
{% endfor %}
| Discount | -{{ total_discounts | money }} |
| Subtotal | {{ order.subtotal_price | money }} |
| Shipping | {{order.shipping_price | default: 0 | money }} |
| GST (10%) | {{ order.total_tax | money }} |
| Total incl. GST | {{ order.total_price | money }} |
| Refund | -{{ transaction.amount | money }} |
Thanks for your business!
If you have any questions, please do get in contact.