Skip to content

Instantly share code, notes, and snippets.

View baorv's full-sized avatar
🎯
Focusing

Bob Roan baorv

🎯
Focusing
  • Mageplaza
  • Hanoi, Vietnam
View GitHub Profile
<div class="mp-price-bc">
<span>Discounted price</span>
</div>
<div class="mp-price-bc">
<span class="price">{{ item.total_discount | money: order.currency }}</span>
</div>
<strong>Discount: </strong>{{ order.total_discounts | money: order.currency }}
.float-button {
width: 100px;
height: 54px;
text-align: center;
padding: 15px !important;
font-weight: bold;
}
{% if order.payment_gateway_names.size > 0 %}
{% if order.payment_gateway_names.0 == 'shopify_payments' %}
<strong>Credit card</strong>
{% endif %}
{% endif %}
{% if order.payment_details %}
{{ order.payment_details.credit_card_number }}
{% endif %}
{% assign logoWidth = configuration.logoWidth | default: 150 %}
{% assign logoSize = template.logo_size | default: 100 %}
{% assign logoHeight = configuration.logoHeight | default: 75 %}
{% unless template.font_family == blank %}
<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;
}
@baorv
baorv / some-thyme.liquid
Created April 28, 2020 07:24
Some Thyme
{% assign obj = order.note_attributes | where: "name", "mw-delivery-date" %}
{% if obj.size > 0 %}
<p><strong>Date: </strong> {{ obj.0.value }} </p>
{% endif %}
@baorv
baorv / resham-collection-template.liquid
Created April 23, 2020 01:42
resham-collection PDF template
{% assign logoWidth = configuration.logoWidth | default: 150 %}
{% assign logoSize = template.logo_size | default: 100 %}
{% assign logoHeight = configuration.logoHeight | default: 75 %}
{% unless template.font_family == blank %}
<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;
}
@baorv
baorv / template.liquid
Created April 22, 2020 03:03
prowake template
{% assign logoWidth = configuration.logoWidth | default: 150 %}
{% assign logoSize = template.logo_size | default: 100 %}
{% assign logoHeight = configuration.logoHeight | default: 100 %}
{% unless template.font_family == blank %}
<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;
}
@baorv
baorv / template.liquid
Created April 13, 2020 02:06
[04.13.2020] - travelfydev - order note attributes
{% assign obj = order.note_attributes | where: "name", "RefundId" %}
{% if obj.size > 0 %}
<p><strong>Refund ID: </strong> {{ obj.0.value }} </p>
{% endif %}
@baorv
baorv / template.liquid
Last active April 8, 2020 02:05
Niimo With Love Template for PDF Invoice
{% assign logoWidth = configuration.logoWidth | default: 150 %}
{% assign logoSize = template.logo_size | default: 100 %}
{% assign logoHeight = configuration.logoHeight | default: 75 %}
{% unless template.font_family == blank %}
<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;
}