Guest User

Versandbestätigung

a guest
Jan 7th, 2017
1,343
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {% if fulfillment.item_count == item_count %}
  2. {% capture shipment_name %}Ihre Bestellung ist{% endcapture %}
  3. {% elsif fulfillment.item_count > 1 %}
  4. {% if fulfillment_status == 'fulfilled' %}
  5. {% capture shipment_name %}Die letzten Teile Ihrer Bestellung sind{% endcapture %}
  6. {% else %}
  7. {% capture shipment_name %}Einige Teile Ihrer Bestellung sind{% endcapture %}
  8. {% endif %}
  9. {% else %}
  10. {% if fulfillment_status == 'fulfilled' %}
  11. {% capture shipment_name %}Das letzte Teil Ihrer Bestellung ist{% endcapture %}
  12. {% else %}
  13. {% capture shipment_name %}Ein Teil Ihrer Bestellung ist{% endcapture %}
  14. {% endif %}
  15. {% endif %}
  16.  
  17. {% capture email_title %}{{ shipment_name }} unterwegs{% endcapture %}
  18. {% capture email_body %}{{ shipment_name }} auf dem Weg zu Ihnen. Verfolgen Sie den Paketstatus..{% endcapture %}
  19. {% capture email_emphasis %}Voraussichtliches Lieferdatum: <strong>{{fulfillment.estimated_delivery_at | date: "%B %d, %Y"}}</strong>{% endcapture %}
  20.  
  21. <!DOCTYPE html>
  22. <html lang="en">
  23. <head>
  24. <title>{{ email_title }}</title>
  25. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  26. <meta name="viewport" content="width=device-width">
  27. <link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
  28. <style>
  29. .button__cell { background: {{ shop.email_accent_color }}; }
  30. a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
  31. </style>
  32. </head>
  33.  
  34. <body>
  35.  
  36. <table class="body">
  37. <tr>
  38. <td>
  39.  
  40. <table class="header row">
  41. <tr>
  42. <td class="header__cell">
  43. <center>
  44.  
  45. <table class="container">
  46. <tr>
  47. <td>
  48.  
  49. <table class="row">
  50. <tr>
  51. <td class="shop-name__cell">
  52. {% if shop.email_logo_url %}
  53. <img src="{{shop.email_logo_url}}" alt="{{ shop.name }}" width="{{ shop.email_logo_width }}">
  54. {% else %}
  55. <h1 class="shop-name__text">
  56. <a href="{{shop.url}}">{{ shop.name }}</a>
  57. </h1>
  58. {% endif %}
  59. </td>
  60.  
  61. <td class="order-number__cell">
  62. <span class="order-number__text">
  63. Bestellung {{ order_name }}
  64. </span>
  65. </td>
  66. </tr>
  67. </table>
  68.  
  69. </td>
  70. </tr>
  71. </table>
  72.  
  73. </center>
  74. </td>
  75. </tr>
  76. </table>
  77.  
  78. <table class="row content">
  79. <tr>
  80. <td class="content__cell">
  81. <center>
  82. <table class="container">
  83. <tr>
  84. <td>
  85.  
  86. <h2>{{ email_title }}</h2>
  87. <p>{{ email_body }}</p>
  88. {% if fulfillment.estimated_delivery_at %}
  89. <p>{{ email_emphasis }}</p>
  90. {% endif %}
  91. {% if order_status_url %}
  92. <table class="row actions">
  93. <tr>
  94. <td class="actions__cell">
  95. <table class="button main-action-cell">
  96. <tr>
  97. <td class="button__cell"><a href="{{ order_status_url }}" class="button__text">Sehen Sie Ihre Bestellung ein</a></td>
  98. </tr>
  99. </table>
  100. {% if shop.url %}
  101. <table class="link secondary-action-cell">
  102. <tr>
  103. <td class="link__cell"><a href="{{ shop.url }}" class="link__text"><span class='or'>oder</span> Besuchen Sie unsere Shop</a></td>
  104. </tr>
  105. </table>
  106. {% endif %}
  107.  
  108. </td>
  109. </tr>
  110. </table>
  111.  
  112. {% else %}
  113. {% if shop.url %}
  114. <table class="row actions">
  115. <tr>
  116. <td class="actions__cell">
  117. <table class="button main-action-cell">
  118. <tr>
  119. <td class="button__cell"><a href="{{ shop.url }}" class="button__text">Besuchen Sie unseren Shop</a></td>
  120. </tr>
  121. </table>
  122. </td>
  123. </tr>
  124. </table>
  125. {% endif %}
  126.  
  127. {% endif %}
  128.  
  129. </td>
  130. </tr>
  131. </table>
  132. </center>
  133. </td>
  134. </tr>
  135. </table>
  136.  
  137. <table class="row section">
  138. <tr>
  139. <td class="section__cell">
  140. <center>
  141. <table class="container">
  142. <tr>
  143. <td>
  144. <h3>Teile in der Lieferung</h3>
  145. </td>
  146. </tr>
  147. </table>
  148. <table class="container">
  149. <tr>
  150. <td>
  151.  
  152.  
  153. <table class="row">
  154. {% for line in fulfillment.fulfillment_line_items %}
  155.  
  156. {% if item_count == 1 %}
  157. {% assign columnWrapperClass = 'order-list__item--single' %}
  158. {% elsif forloop.first == true %}
  159. {% assign columnWrapperClass = 'order-list__item--first' %}
  160. {% elsif forloop.last == true %}
  161. {% assign columnWrapperClass = 'order-list__item--last' %}
  162. {% else %}
  163. {% assign columnWrapperClass = '' %}
  164. {% endif %}
  165. <tr class="order-list__item {{columnWrapperClass}}">
  166. <td class="order-list__item__cell">
  167. <table>
  168. <td>
  169. {% if line.line_item.image %}
  170. <img src="{{ line.line_item | img_url: 'compact_cropped' }}" align="left" width="60" height="60" class="order-list__product-image"/>
  171. {% endif %}
  172. </td>
  173. <td class="order-list__product-description-cell">
  174. {% if line.line_item.product.title %}
  175. {% assign line_title = line.line_item.product.title %}
  176. {% else %}
  177. {% assign line_title = line.line_item.title %}
  178. {% endif %}
  179. <span class="order-list__item-title">{{ line_title }} × {{ line.line_item.quantity }}</span><br/>
  180. {% if line.line_item.variant.title != 'Default Title' %}
  181. <span class="order-list__item-variant">{{ line.line_item.variant.title }}</span>
  182. {% endif %}
  183. </td>
  184. </table>
  185. </td>
  186. </tr>{% endfor %}
  187. </table>
  188.  
  189.  
  190. </td>
  191. </tr>
  192. </table>
  193. </center>
  194. </td>
  195. </tr>
  196. </table>
  197.  
  198. <table class="row footer">
  199. <tr>
  200. <td class="footer__cell">
  201. <center>
  202. <table class="container">
  203. <tr>
  204. <td>
  205. <p class="disclaimer__subtext">Wenn Sie Fragen haben schicken Sie uns eine Mail an <a href="mailto:{{ shop.email }}">{{ shop.email }}</a></p>
  206. </td>
  207. </tr>
  208. </table>
  209. </center>
  210. </td>
  211. </tr>
  212. </table>
  213.  
  214. <img src="{{ 'notifications/spacer.png' | shopify_asset_url }}" class="spacer" height="1" />
  215.  
  216. </td>
  217. </tr>
  218. </table>
  219. </body>
  220. </html>
  221.  
  222.  
  223.  
RAW Paste Data