Last active
October 11, 2017 16:17
-
-
Save boldsupport/1cb6d95b933549148bb22d89d7ea081f to your computer and use it in GitHub Desktop.
Linked from: https://support.boldcommerce.com/hc/en-us/articles/200469766-Product-Builder-Install-Instructions
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
<p>Hello {{ shop_name }},</p> | |
<p></p> | |
<p>{% if customer.name %}{{ customer.name }}{% else %}Someone{% endif %} placed a new order with your store, {{ date | date: "%b %d %I:%M%p" }}:</p> | |
<p></p> | |
<ul> {% for line in line_items %} | |
{% capture bold_product_options %} | |
{% if line.properties.builder_id %} | |
{% assign bold_builder_id = line.properties.builder_id %} | |
{% assign bold_master_builder = line.properties.master_builder %} | |
{% else %} | |
{% assign bold_builder_id = line.properties._builder_id %} | |
{% assign bold_master_builder = line.properties._master_builder %} | |
{% endif %} | |
{% if bold_master_builder == blank and bold_builder_id != blank %}{% continue %} | |
{% endif %} | |
{% if bold_builder_id != blank %} | |
{% assign bold_price = 0 %} | |
{% for bold_item in line_items %} | |
{% if bold_item.properties.builder_id == bold_builder_id or bold_item.properties._builder_id == bold_builder_id %} | |
{% assign bold_price = bold_price | plus: bold_item.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: opt_title | append: ': ' | append: opt_desc %} | |
{% endunless%} | |
{% endfor %} | |
{% assign bold_options = bold_options | prepend: '<span class="bold_options">' | append: "</span>" %} | |
{% assign bold_line_price = bold_price | times: line.quantity %} | |
{% else %} | |
{% assign bold_price = line.price %} | |
{% assign bold_line_price = line.line_price %} | |
{% assign bold_options = "" %} | |
<!-- missing block --> | |
{% 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: opt_title | append: ': ' | append: opt_desc %} | |
{% endunless%} | |
{% endfor %} | |
{% assign bold_options = bold_options | prepend: '<span class="bold_options">' | append: "</span>" %} | |
<!-- end missing --> | |
{% endif %} | |
{% endcapture %} | |
<li> <img src="{{ line | img_url: 'thumb' }}" /> {{ line.quantity }}x {{ line.title }} {% if line.sku != "" %}(SKU: {{line.sku}}){% endif %} for {{ bold_line_price | money }} each <br /> {{ bold_options }}</li> {% endfor %} </ul> | |
<a href="https://{{ shop.permanent_domain }}/admin/orders/{{ id }}">View order {{order_name}} </a> | |
{% if fulfillment_aborted %} | |
<p>The above order was not automatically fulfilled because it was flagged as suspicious.</p>{% endif %} | |
<p></p><br> | |
{% if has_high_risks? %}<p><b>Security check:</b></p> | |
<p>This order has a risk of being fraudulent. Review the order in your store's admin and contact the customer to verify their information.</p> | |
<p></p>{% endif %} | |
<p><b>Payment processing method:</b></p> | |
<p>{{ gateway }}</p> | |
<p></p> | |
{% if requires_shipping and shipping_address %} | |
<p><b>Delivery method:</b></p> | |
{% for shipping_method in shipping_methods %}<p>{{ shipping_method.title }}</p>{% endfor %} | |
<p></p> | |
<p><b>Shipping address:</b></p> | |
<p>{{ shipping_address.name }}</p> | |
<p>{{ shipping_address.street }}</p> | |
<p>{{ shipping_address.city }}, {{ shipping_address.province }} {{ shipping_address.zip }}</p> | |
<p>{{ shipping_address.country }}</p> | |
<p>{{ shipping_address.phone }}{% endif %}</p> | |
<p></p> | |
{% if shopify_shipping_enabled %} | |
<p>Save time and money by <a href="{{ fulfillment_url }}">fulfilling with Shopify Shipping</a></p> | |
<p></p> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment