Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 6.76 KB | None | 0 0
  1. {% capture email_title %} Your Wild Nutrition basket is waiting for you. {% endcapture %}
  2. {% capture email_body %}
  3. {% if billing_address.first_name %}Hello {{ billing_address.first_name }},<br><br> w{% else %}
  4. W{% endif %}e noticed that you left some items in your shopping basket recently and we wanted to make sure everything worked ok for you? We've recently made some changes to our website so do let us know if you had any difficulty in completing your order.
  5. <br></br>
  6. <br></br>
  7. Our in-house team of Nutritional Therapists are always here for any questions you might have. If you're not sure which products are right for you, take advantage of a free 10-minute telephone consultation between 12-4pm Monday-Friday, we'd be delighted to hear from you.
  8. <br></br>
  9. <br></br>
  10. Alternatively, if you'd simply popped off to make a cup of tea and forgot to complete your order, then simply click the link below to continue what you’d started.
  11. <br></br>
  12. <br></br>
  13. Wishing you excellent health,
  14. <br></br>
  15. <br></br>
  16. The Wild Team
  17. {% endcapture %}
  18.  
  19. <!DOCTYPE html>
  20. <html lang="en">
  21.   <head>
  22.   <title>{{ email_title }}</title>
  23.   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  24.   <meta name="viewport" content="width=device-width">
  25.   <link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
  26.   <link rel="stylesheet" type="text/css" href="https://cdn.shopify.com/s/files/1/2352/0201/t/9/assets/notificationfont.css">
  27.   <style>
  28.     .button__cell {
  29. background-color: #000000;
  30. border-radius: 3px!important;
  31. font-size: 14px!important;
  32. max-height: 44px!important;
  33.  
  34.  a, a:hover, a:active, a:visited {
  35. color: #000000;
  36. }
  37.  
  38. }
  39.  
  40. .button__text {
  41. padding: 12.5px!important;
  42. }
  43.  
  44.  
  45.  
  46. @media (min-width:600px)  {
  47. .button main-action-cell {
  48. min-width: 100%;
  49. }
  50.  }
  51. @media (min-width:801px)  {
  52. .button main-action-cell {
  53. min-width: 100%;
  54. }
  55.  }
  56. @media (min-width:1025px) {
  57. .button main-action-cell {
  58. min-width: 100%;
  59. }
  60. }
  61. @media (min-width:1281px) {
  62. .button main-action-cell {
  63. min-width: 100%;
  64. }
  65. }
  66.  
  67. #order-list__product-description-cell {
  68. font-size: 14px!important;
  69. }
  70.  
  71.   </style>
  72. </head>
  73.  
  74.   <body>
  75.     <table class="body">
  76.       <tr>
  77.         <td>
  78.           <table class="header row">
  79.   <tr>
  80.     <td class="header__cell">
  81.       <center>
  82.  
  83.         <table class="container">
  84.           <tr>
  85.             <td>
  86.  
  87.               <table class="row">
  88.                 <tr>
  89.                   <td class="shop-name__cell">
  90.  <img style="max-width: 100%;" src="https://cdn.shopify.com/s/files/1/2352/0201/files/wn_email_logo.jpg">
  91.                     {%- if shop.email_logo_url %}
  92.                      <img style="max-width: 100%;" src="https://cdn.shopify.com/s/files/1/2352/0201/files/KettleStory.gif">
  93.                     {%- else %}
  94.                       <h1 class="shop-name__text">
  95.                         <a href="{{shop.url}}">{{ shop.name }}</a>
  96.                       </h1>
  97.                     {%- endif %}
  98.                   </td>
  99.  
  100.                 </tr>
  101.               </table>
  102.  
  103.             </td>
  104.           </tr>
  105.         </table>
  106.  
  107.       </center>
  108.     </td>
  109.   </tr>
  110. </table>
  111.  
  112.           <table class="row content">
  113.   <tr>
  114.     <td class="content__cell">
  115.       <center>
  116.         <table class="container">
  117.           <tr>
  118.             <td>
  119.               <br>
  120.             <h2 style="font-size: 18px!important;">{{ email_title }}</h2>
  121. <br>
  122.  
  123.             {% if custom_message != blank %}
  124.  
  125.               <p style="font-size: 14px!important;">{{ custom_message }}</p>
  126.             {% else %}
  127.      
  128.               <p style="font-size: 14px!important;">{{ email_body }}</p>
  129. <br>
  130.      
  131.  
  132.             {% endif %}
  133.  
  134.      
  135.             <table class="row actions">
  136.  <table style="style="min-width: 100%" class="button main-action-cell">
  137.        <tr>
  138.          <td class="button__cell"><a style="font-size: 14px!important;" href="{{ url }}" class="button__text">COMPLETE YOUR PURCHASE</a></td>
  139.        </tr>
  140.      </table>
  141.  <tr>
  142.    <td class="actions__cell">
  143.      {% if shop.url %}
  144.    <table class="link secondary-action-cell">
  145.      <tr>
  146.        <td class="link__cell"><a style="font-size: 14px;important; color: #f6007d!important;" href="{{ shop.url }}" class="link__text"><span class='or'>or</span> Visit our store</a></td>
  147.       </tr>
  148.     </table>
  149. {% endif %}
  150.  
  151.     </td>
  152.   </tr>
  153. </table>
  154.  
  155.  
  156.             </td>
  157.           </tr>
  158.         </table>
  159.       </center>
  160.     </td>
  161.   </tr>
  162. </table>
  163.  
  164.           <table class="row section">
  165.   <tr>
  166.     <td class="section__cell">
  167.       <center>
  168.         <table class="container">
  169.           <tr>
  170.             <td>
  171.               <h3 style="font-size: 18px!important;">Items in your cart</h3>
  172.             </td>
  173.           </tr>
  174.         </table>
  175.         <table class="container">
  176.           <tr>
  177.             <td>
  178.              
  179.            
  180. <table class="row">
  181.   {% for line in line_items %}
  182.   <tr class="order-list__item">
  183.     <td class="order-list__item__cell">
  184.       <table>
  185.         <td>
  186.           {% if line.image %}
  187.             <img src="{{ line | img_url: 'compact_cropped' }}" align="left" width="60" height="60" class="order-list__product-image"/>
  188.           {% endif %}
  189.         </td>
  190.         <td class="order-list__product-description-cell">
  191.           {% if line.product.title %}
  192.             {% assign line_title = line.product.title %}
  193.           {% else %}
  194.             {% assign line_title = line.title %}
  195.           {% endif %}
  196.  
  197.           {% if line.quantity < line.quantity %}
  198.             {% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
  199.           {% else %}
  200.             {% assign line_display = line.quantity  %}
  201.           {% endif %}
  202.  
  203.           <span class="order-list__item-title">{{ line_title }} × {{ line_display }}</span><br/>
  204.  
  205.           {% if line.variant.title != 'Default Title' %}
  206.             <span class="order-list__item-variant">{{ line.variant.title }}</span>
  207.           {% endif %}
  208.         </td>
  209.       </table>
  210.     </td>
  211.   </tr>{% endfor %}
  212. </table>
  213.  
  214.  
  215.             </td>
  216.           </tr>
  217.         </table>
  218.       </center>
  219.     </td>
  220.   </tr>
  221. </table>
  222.  
  223.           <table class="row footer">
  224.   <tr>
  225.     <td class="footer__cell">
  226.       <center>
  227.         <table class="container">
  228.           <tr>
  229.             <td>
  230.               <p style="font-size:14px!important;" class="disclaimer__subtext">If you have any questions, reply to this email or contact us at <a style="font-size: 14px!important; color: #f6007d!important;" href="mailto:{{ shop.email }}">{{ shop.email }}</a></p>
  231.             </td>
  232.           </tr>
  233.         </table>
  234.       </center>
  235.     </td>
  236.   </tr>
  237. </table>
  238.  
  239. <img src="{{ 'notifications/spacer.png' | shopify_asset_url }}" class="spacer" height="1" />
  240.  
  241.         </td>
  242.       </tr>
  243.     </table>
  244.   </body>
  245. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement