Untitled

 avatar
unknown
plain_text
4 years ago
3.3 kB
5
Indexable
{% if shipping_address %}
  <h3 style="margin: 0 0 1em 0;">Shipping Details</h3>

  <div style="margin: 0 0 1em 0; padding: 1em; border: 1px solid black;">
    <strong>{{ shipping_address.name }}</strong><br/>
    {% if shipping_address.company %}
      {{ shipping_address.company }}<br/>
    {% endif %}
    {{ shipping_address.street }}<br/>
    {{ shipping_address.city }}
    {{ shipping_address.province_code }}
    {{ shipping_address.zip | upcase }}<br/>
  </div>
{% endif %}

<!-- Bold 1 --> 
{% assign hidden_variant_ids = "" %} 
{% for line in line_items %}   
{% if line.properties._boldVariantIds %}     
{% assign hidden_variant_ids = hidden_variant_ids | append: ',' %}     
{% assign hidden_variant_ids = hidden_variant_ids | append: line.properties._boldVariantIds %}   
{% endif %} 
{% endfor %} 
<!-- Bold end 1 -->

{% for line in line_items %} 

<!-- Bold 2 -->
{% if hidden_variant_ids contains line.variant_id %}{% continue %}{% endif %}

{% assign bold_item_price = line.price %}
{% assign bold_line_price = line.line_price %}
{% for line2 in line_items %}
  {% if line.properties._boldVariantIds contains line2.variant_id %}
    {% assign bold_item_price = bold_item_price | plus: line2.price %}
    {% assign bold_line_price = bold_line_price | plus: line2.line_price %}
       {% endif %}
{% endfor %}

  {% assign bold_options = " " %}
  {% for bold_option in line.properties %}
    {% assign first_char = bold_option.first | slice: 0, 1 %}
    {% assign opt_title = bold_option | first %}
    {% assign opt_desc = bold_option | last %}
    {% unless first_char == '_' or bold_option.first == 'master_builder' or bold_option.first == 'builder_id' or bold_option.first == 'builder_info' or bold_option.last == "" %}
      {% assign bold_options = bold_options | append: '<br />' | append: '&emsp;' | append: opt_title | append: ': ' | append: '&emsp;' | append: opt_desc | append: '<br />' %}
    {% endunless%}
  {% endfor %}
{% unless line.product.type contains "OPTIONS_HIDDEN_PRODUCT" or line.title contains "E-Gift" or line.title contains "Whole Wheat Good" %}
  {% assign bold_options = bold_options | prepend: '<span class="bold_options">' | append: "</span>" %}

  <!-- Bold end 2 -->

<br /><li> 
{% comment %}Added by Sean C @ Shopify October 6 2021 {% endcomment %} 
<b>{% if line.product.type != blank %}{{ line.product.type }} - {% endif %}QTY {{ line.quantity }} - {{ line.title }}</b> <br /><br /> {{bold_options}}</li> {% endunless %} {% endfor %} </ul></a>



<p style="text-align:center;">
	{% if customer.orders_count < 2 %}
		<h2><mark>THIS IS A NEW CUSTOMER!</mark></h2>
	{% endif %}
</p>

<b/>

{% if note %}
  <h3 style="margin: 0 0 1em 0;"><mark style="background: #4c4cff!important">Note:</mark></h3>
  <p>{{ note }}</p>
{% endif %}

{% if checkout.note %}
  <h3 style="margin: 0 0 1em 0;">Cart Note:</h3>
  <p>{{ delivery_method.instructions }}</p>
{% endif %}

  <h3 style="margin: 0 0 1em 0;">Billing Details</h3>

  <div style="margin: 0 0 1em 0; padding: 1em; border: 1px solid black;">
    <strong>{{ billing_address.name }}</strong><br/>
  {{ billing_address.address1 }}<br/>
 {{ billing_address.city }}
    {{ billing_address.province_code }}
    {{ billing_address.zip | upcase }}<br/>
  </div>
Editor is loading...