Created
May 11, 2020 11:06
-
-
Save baorv/ddec078e0742307cd6242d197b39116b to your computer and use it in GitHub Desktop.
AVADA Invoice template for vfuae.myshopify.com
This file contains 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
* { | |
padding: 0; | |
margin: 0; | |
} | |
.logo img { | |
margin-top: 10px; | |
margin-bottom: 10px; | |
} | |
h1, h2, h3, h4, h5, h6, p { | |
padding: 0; | |
margin: 0; | |
} | |
#wrapper { | |
margin: 20px; | |
} | |
.clr { | |
clear: both; | |
} | |
.header-left, .header-right, .footer-left { | |
width: 50%; | |
float: left; | |
} | |
img { | |
margin-top: 30px; | |
} | |
.business-information { | |
margin-top: 5px; | |
} | |
.info { | |
margin-left: 30px; | |
padding-top: 28px; | |
} | |
.billing-address, .shipping-address, .payment-method, .shipping-method { | |
float: left; | |
width: 50%; | |
color: black; | |
} | |
.billing-address p, .shipping-address p, .payment-method p, .shipping-method p { | |
margin-left: 5px; | |
margin-top: 10px; | |
margin-bottom: 10px; | |
} | |
.content { | |
padding-top: 30px; | |
} | |
.mp-block-heading { | |
width: 98% !important; | |
padding: 5px 0 5px 5px; | |
color: #FFF; | |
} | |
.mp-block-heading, .mp-note, .mp-heading, .mp-main-bg-color { | |
background-color: {{ template.primary_color | default: "#000000" }}; | |
} | |
.table { | |
width: 100%; | |
} | |
.header-table { | |
width: 100%; | |
height: 100%; | |
} | |
.mp-item { | |
width: 59%; | |
float: left; | |
padding: 6px 0; | |
} | |
.mp-qty, .mp-price, .mp-subtotal { | |
width: 13%; | |
float: left; | |
text-align: center; | |
padding: 6px 0; | |
} | |
.mp-heading { | |
width: 100%; | |
height: 32px; | |
color: #FFF; | |
} | |
.mp-heading span { | |
font-weight: bold; | |
} | |
.mp-item { | |
padding-left: 5px | |
} | |
.order-totals { | |
text-align: right; | |
margin-top: 20px; | |
} | |
.mp { | |
width: 100%; | |
height: 35px; | |
} | |
.mp-str { | |
font-weight: bold; | |
width: 80%; | |
float: left; | |
} | |
.mp-right { | |
width: 18%; | |
float: left; | |
} | |
footer { | |
margin-top: 30px; | |
} | |
.footer-left { | |
width: 50%; | |
} | |
.mp-note { | |
color: #FFF; | |
padding-left: 3px; | |
} | |
.mp-item-bc { | |
width: 44%; | |
float: left; | |
padding: 6px 0 6px 5px; | |
} | |
.mp-barcode-bc { | |
width: 30%; | |
float: left; | |
padding: 6px 0; | |
} | |
.mp-barcode-bc p { | |
text-align: right; | |
} | |
.mp-price-bc { | |
float: right; | |
} | |
.mp-qty-bc, .mp-price-bc, .mp-subtotal-bc { | |
width: 10%; | |
float: left; | |
text-align: center; | |
padding: 6px 0; | |
} | |
.mp-qty-bc-title { | |
margin-top: 0 !important; | |
} | |
.mp-qty-bc { | |
width: 5%; | |
float: left; | |
text-align: center; | |
padding: 6px 0; | |
} | |
.payment-method .content { | |
display: none | |
} | |
.paymentTable { | |
margin-top: 10px; | |
} | |
.text-note { | |
font-style: italic; | |
color: rgb(93, 93, 93); | |
} | |
.barcode, .qrcode { | |
margin-top: 4px; | |
} | |
.center { | |
text-align: center; | |
} |
This file contains 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
{% assign logoWidth = configuration.logoWidth | default: 150 %} | |
{% assign logoSize = template.logo_size | default: 100 %} | |
{% assign logoHeight = configuration.logoHeight | default: 75 %} | |
{% unless template.font_family == blank %} | |
{% assign totalQuantity = 0 %} | |
{% for item in order.line_items %} | |
{% assign totalQuantity = totalQuantity | plus: item.quantity %} | |
{% endfor %} | |
<span> | |
<link type="text/css" href="https://fonts.googleapis.com/css?family={{ template.font_family }}:100,100i,300,300i,400,400i,500,500i,700,700i&display=swap&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese" rel="stylesheet"> | |
<style type="text/css"> | |
#wrapper * { | |
font-family: '{{ template.font_family | replace: "+", " " }}', serif; | |
} | |
</style> | |
</span> | |
{% endunless %} | |
<div id="wrapper"> | |
<div class="header"> | |
<div class="header-left"> | |
<div class="logo-left"> | |
{% unless configuration.logo == blank %} | |
<a class="logo" href="{{ shop.url }}"> | |
<img | |
style="max-width: {{ logoWidth }}px; width: {{ logoSize }}%;" | |
src="{{ configuration.logo | asset_url }}" | |
alt="Main Website Store" border="0" | |
/> | |
</a> | |
{% endunless %} | |
</div> | |
<div class="business-information"> | |
<p>{{ text.address }}: {{ configuration.address }}</p> | |
<p>{{ text.phone }}: {{ configuration.phone }}</p> | |
<p>{{ text.tax_id }}: {{ configuration.vat_number }} </p> | |
<p>{{ text.contact }}: {{ configuration.email }}</p> | |
<p>{{ text.registered }}: {{ configuration.registered_number }}</p> | |
</div> | |
</div> | |
<div class="header-right"> | |
<div class="info"> | |
<h1 class="info-title">{{ text.invoice | upcase }}</h1> | |
<p>{{ text.invoice }} <b>{{ order.name }}</b></p> | |
<p>{{ text.invoice_date }}: <b>{{ order.created_at | date }}</b></p> | |
<p>{{ text.invoice_amount }}: <b><span class="price">{{ order.total_price | money: order.currency }}</span></b></p> | |
{% if configuration.barcode_enable %} | |
<p class="mp-invoice-barcode"> | |
{{ order.name | barcode }} | |
</p> | |
{% endif %} | |
</div> | |
</div> | |
</div> | |
<div class="clr"></div> | |
<div class="content"> | |
<div class="address"> | |
<div class="billing-address"> | |
<h3 class="mp-block-heading">{{ text.payment_address }}</h3> | |
<p>{{ order.billing_address.name | default: text.no_payment_address }}<br/> | |
{{ order.billing_address.address1 }}<br/> | |
{% unless order.billing_address.address2 == blank %} | |
{{ order.billing_address.address2 }}<br/> | |
{% endunless %} | |
{{ order.billing_address.city }}<br/> | |
{{ order.billing_address.country }}<br/> | |
{% if order.billing_address.phone %} | |
T: <a href="tel:{{ order.billing_address.phone }}">{{ order.billing_address.phone }}</a> | |
{% endif %} | |
</p> | |
</div> | |
<div class="payment-method"> | |
<h3 class="mp-block-heading">{{ text.payment_method }}</h3> | |
{% if order.payment_gateway_names.size > 0 %} | |
<p>{{ order.payment_gateway_names.0 }}</p> | |
{% else %} | |
<p>{{ text.no_billing }}</p> | |
{% endif %} | |
</div> | |
</div> | |
<div class="clr"></div> | |
</div> | |
<div class="table"> | |
<div class="mp-row mp-heading"> | |
<div class="mp-item-bc"> | |
<span>{{ text.items }}<span> | |
</span></span></div> | |
<div class="mp-barcode-bc"> | |
<span></span> | |
</div> | |
<div class="mp-qty-bc mp-qty-bc-title"> | |
<span>{{ text.qty }}</span> | |
</div> | |
<div class="mp-price-bc"> | |
<span>{{ text.price }}</span> | |
</div> | |
</div> | |
{% for item in order.line_items %} | |
<div class="mp-row odd" style="border-bottom: 1px solid #ddd;"> | |
<div class="mp-item-bc"> | |
<p class="product-name">{{ item.name }}</p> | |
{% if item.sku %} | |
<p class="sku">{{ text.sku }}: {{ item.sku }}</p> | |
{% endif %} | |
{% if item.variant_title %} | |
<p class="sku">{{ text.variant }}: {{ item.variant_title }}</p> | |
{% endif %} | |
{% if item.sku and item.sku.size > 18 and configuration.barcode_enable %} | |
<p class="sku"> | |
{{ item.sku | barcode }} | |
</p> | |
{% endif %} | |
</div> | |
<div class="mp-barcode-bc"> | |
{% if item.sku and item.sku.size <= 18 and configuration.barcode_enable %} | |
<p> | |
{{ item.sku | barcode }} | |
</p> | |
{% endif %} | |
</div> | |
<div class="mp-qty-bc"> | |
<span>{{ item.quantity }}</span> | |
</div> | |
<div class="mp-price-bc"> | |
<span class="price">{{ item.price | money: order.currency }}</span> | |
</div> | |
</div> | |
<div class="clr"></div> | |
{% endfor %} | |
{% if order.total_shipping != "0.00" %} | |
<div class="mp-row odd" style="border-bottom: 1px solid #ddd;"> | |
<div class="mp-item-bc"> | |
<p class="product-name">Shipping</p> | |
</div> | |
<div class="mp-barcode-bc"></div> | |
<div class="mp-qty-bc"> | |
<span>{{ totalQuantity }}</span> | |
</div> | |
<div class="mp-price-bc"> | |
<span class="price">{{ order.total_shipping | money: order.currency }}</span> | |
</div> | |
</div> | |
<div class="clr"></div> | |
{% endif %} | |
<div style="border-bottom: 1px solid #ddd;"></div> | |
</div> | |
<div class="order-totals"> | |
{% if order.total_discounts != "0.00" and order.discount_codes.size > 0 %} | |
<div class="custom mp"> | |
<div class="totals-tax"> | |
<div class="mp-str"> | |
{{ text.discount }} ({{ order.discount_codes.0.code }}) | |
</div> | |
<div class="mp-right" data-th="Tax"> | |
<span class="price">- {{ order.total_discounts | money: order.currency }}</span> | |
</div> | |
</div> | |
</div> | |
{% endif %} | |
<div class="subtotal mp"> | |
<div class="mp-str"> | |
{{ text.subtotal }} | |
</div> | |
<div class="mp-right" data-th="Subtotal"> | |
<span class="price">{{ order.subtotal_price | money: order.currency }}</span> | |
</div> | |
</div> | |
{% if order.total_tax != "0.00" %} | |
<div class="custom mp"> | |
<div class="totals-tax"> | |
<div class="mp-str"> | |
{{ text.tax }} | |
</div> | |
<div class="mp-right" data-th="Tax"> | |
<span class="price">{{ order.total_tax | money: order.currency }}</span> | |
</div> | |
</div> | |
</div> | |
{% endif %} | |
<div class="grand_total mp"> | |
<div class="mp-str"> | |
<strong>{{ text.grand_total }}</strong> | |
</div> | |
<div class="mp-right" data-th="Grand Total"> | |
<strong><span class="price">{{ order.total_price | money: order.currency }}</span></strong> | |
</div> | |
</div> | |
</div> | |
{% unless order.note == blank %} | |
<footer> | |
<div class="address"> | |
<div class="shipping-address"> | |
<h3 class="mp-block-heading">{{ text.notes }}</h3> | |
<p class="text-note">{{ order.note }}</p> | |
</div> | |
</div> | |
</footer> | |
{% endunless %} | |
<div class="clr"></div> | |
<div> | |
<h3 class="center">{{ text.thank_notes }}</h3> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment