Advertisement
Guest User

Versandbestätigung DE/EN

a guest
Mar 17th, 2017
1,486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.76 KB | None | 0 0
  1. {% case attributes.language %} {% when 'ly20894' %} Your order {{ name }} is on the way! {% else %} Deine Bestellung {{ name }} ist auf dem Weg! {% endcase %}
  2.  
  3. {% case attributes.language %}
  4. {% when 'ly20894' %}
  5. {% if fulfillment.item_count == item_count %}
  6. {% capture shipment_name %}Your order has been shipped{% endcapture %}
  7. {% capture custom_body %}To track your order, follow the link below. You can also track your order in <a href="{{shop.url}}/account/login">your account</a>. Don't have one yet? Create it <a href="{{shop.url}}/account/register">here</a>.{% endcapture %}
  8. {% else %}
  9. {% capture shipment_name %}Your order has been shipped{% endcapture %}
  10. {% capture custom_body %}We have shipped all items listed below. Unfortunately we were not able to ship all items in your order, however, we already refunded the difference to you. To track your order, follow the link below. You can also track your order in <a href="{{shop.url}}/account/login">your account</a>. Don't have one yet? Create it <a href="{{shop.url}}/account/register">here</a>.{% endcapture %}
  11. {% endif %}
  12.  
  13. {% capture email_title %}{{ shipment_name }}{% endcapture %}
  14. {% capture email_body %}{{ custom_body }}{% endcapture %}
  15.  
  16. {% capture email_emphasis %}Estimated delivery date: <strong>{{fulfillment.estimated_delivery_at | date: "%B %d, %Y"}}</strong>{% endcapture %}
  17.  
  18. <!DOCTYPE html>
  19. <html lang="en">
  20. <head>
  21. <title>{{ email_title }}</title>
  22. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  23. <meta name="viewport" content="width=device-width">
  24. <link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
  25. <style>
  26. .button__cell { background: {{ shop.email_accent_color }}; }
  27. a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
  28. </style>
  29. </head>
  30.  
  31. <body>
  32.  
  33. <table class="body">
  34. <tr>
  35. <td>
  36.  
  37. <table class="header row">
  38. <tr>
  39. <td class="header__cell">
  40. <center>
  41.  
  42. <table class="container">
  43. <tr>
  44. <td>
  45.  
  46. <table class="row">
  47. <tr>
  48. <td class="shop-name__cell">
  49. {% if shop.email_logo_url %}
  50. <img src="{{shop.email_logo_url}}" alt="{{ shop.name }}" width="{{ shop.email_logo_width }}">
  51. {% else %}
  52. <h1 class="shop-name__text">
  53. <a href="{{shop.url}}">{{ shop.name }}</a>
  54. </h1>
  55. {% endif %}
  56. </td>
  57.  
  58. <td class="order-number__cell">
  59. <span class="order-number__text">
  60. Order {{ order_name }}
  61. </span>
  62. </td>
  63. </tr>
  64. </table>
  65.  
  66. </td>
  67. </tr>
  68. </table>
  69.  
  70. </center>
  71. </td>
  72. </tr>
  73. </table>
  74.  
  75. <table class="row content">
  76. <tr>
  77. <td class="content__cell">
  78. <center>
  79. <table class="container">
  80. <tr>
  81. <td>
  82.  
  83. <h2>{{ email_title }}</h2>
  84. <p>{{ email_body }}</p>
  85. {% if fulfillment.estimated_delivery_at %}
  86. <p>{{ email_emphasis }}</p>
  87. {% endif %}
  88. {% if order_status_url %}
  89. <table class="row actions">
  90. <tr>
  91. <td class="actions__cell">
  92. <table class="button main-action-cell">
  93. <tr>
  94. <td class="button__cell"><a href="{{ fulfillment.tracking_urls }}" class="button__text">Track my order</a></td>
  95. </tr>
  96. </table>
  97. {% if shop.url %}
  98. <table class="link secondary-action-cell">
  99. <tr>
  100. <td class="link__cell"><a href="{{shop.url}}" class="link__text"><span class='or'>or</span> Visit our store</a></td>
  101. </tr>
  102. </table>
  103. {% endif %}
  104.  
  105. </td>
  106. </tr>
  107. </table>
  108.  
  109. {% else %}
  110. {% if shop.url %}
  111. <table class="row actions">
  112. <tr>
  113. <td class="actions__cell">
  114. <table class="button main-action-cell">
  115. <tr>
  116. <td class="button__cell"><a href="{{shop.url}}" class="button__text">Visit our store</a></td>
  117. </tr>
  118. </table>
  119. </td>
  120. </tr>
  121. </table>
  122. {% endif %}
  123.  
  124. {% endif %}
  125.  
  126. </td>
  127. </tr>
  128. </table>
  129. </center>
  130. </td>
  131. </tr>
  132. </table>
  133.  
  134. <table class="row section">
  135. <tr>
  136. <td class="section__cell">
  137. <center>
  138. <table class="container">
  139. <tr>
  140. <td>
  141. <h3>Items in this shipment</h3>
  142. </td>
  143. </tr>
  144. </table>
  145. <table class="container">
  146. <tr>
  147. <td>
  148.  
  149.  
  150. <table class="row">
  151. {% for line in fulfillment.fulfillment_line_items %}
  152.  
  153. {% if item_count == 1 %}
  154. {% assign columnWrapperClass = 'order-list__item--single' %}
  155. {% elsif forloop.first == true %}
  156. {% assign columnWrapperClass = 'order-list__item--first' %}
  157. {% elsif forloop.last == true %}
  158. {% assign columnWrapperClass = 'order-list__item--last' %}
  159. {% else %}
  160. {% assign columnWrapperClass = '' %}
  161. {% endif %}
  162. <tr class="order-list__item {{columnWrapperClass}}">
  163. <td class="order-list__item__cell">
  164. <table>
  165. <td>
  166. {% if line.line_item.image %}
  167. <img src="{{ line.line_item | img_url: 'compact_cropped' }}" align="left" width="60" height="60" class="order-list__product-image"/>
  168. {% endif %}
  169. </td>
  170. <td class="order-list__product-description-cell">
  171. {% if line.line_item.product.title %}
  172. {% assign line_title = line.line_item.product.title %}
  173. {% else %}
  174. {% assign line_title = line.line_item.title %}
  175. {% endif %}
  176. <span class="order-list__item-title">{{ line_title }} × {{ line.line_item.quantity }}</span><br/>
  177. {% if line.line_item.variant.title != 'Default Title' %}
  178. <span class="order-list__item-variant">{{ line.line_item.variant.title }}</span>
  179. {% endif %}
  180. </td>
  181. </table>
  182. </td>
  183. </tr>{% endfor %}
  184. </table>
  185.  
  186.  
  187. </td>
  188. </tr>
  189. </table>
  190. </center>
  191. </td>
  192. </tr>
  193. </table>
  194.  
  195. <table class="row footer">
  196. <tr>
  197. <td class="footer__cell">
  198. <center>
  199. <table class="container">
  200. <tr>
  201. <td>
  202. <p class="disclaimer__subtext">If you have any questions, reply to this email or contact us at <a href="mailto:{{ shop.email }}">{{ shop.email }}</a></p>
  203. </td>
  204. </tr>
  205. </table>
  206. </center>
  207. </td>
  208. </tr>
  209. </table>
  210.  
  211. <img src="{{ 'notifications/spacer.png' | shopify_asset_url }}" class="spacer" height="1" />
  212.  
  213. </td>
  214. </tr>
  215. </table>
  216. </body>
  217. </html>
  218.  
  219.  
  220. <!-- DE TRANSLATION -->
  221. {% else %}
  222. {% if fulfillment.item_count == item_count %}
  223. {% capture shipment_name %}Wir haben Deine Bestellung verschickt{% endcapture %}
  224. {% capture custom_body %}Folge dem Button, um Deine Bestellung zu verfolgen. Zusätzlich kannst Du den Versandstatus stets über <a href="{{shop.url}}/account/login">deinen Account</a> einsehen. Du hast noch keinen? <a href="{{shop.url}}/account/register">Hier</a> kannst Du Dir einen Account erstellen.{% endcapture %}
  225. {% else %}
  226. {% capture shipment_name %}Wir haben Deine Bestellung verschickt{% endcapture %}
  227. {% capture custom_body %}Die unten stehenden Artikel sind jetzt unterwegs. Leider konnten wir nicht alle Artikel verschicken, haben Dir aber die Differenz schon wieder gutgeschrieben. Folge dem Button, um Deine Bestellung zu verfolgen. Zusätzlich kannst Du den Versandstatus stets über <a href="{{shop.url}}/account/login">deinen Account</a> einsehen. Du hast noch keinen? <a href="{{shop.url}}/account/register">Hier</a> kannst Du Dir einen Account erstellen.{% endcapture %}
  228. {% endif %}
  229.  
  230. {% capture email_title %}{{ shipment_name }}{% endcapture %}
  231. {% capture email_body %}{{ custom_body }}{% endcapture %}
  232.  
  233. {% capture email_emphasis %}Voraussichtliches Zustellungsdatum: <strong>{{fulfillment.estimated_delivery_at | date: "%B %d, %Y"}}</strong>{% endcapture %}
  234.  
  235. <!DOCTYPE html>
  236. <html lang="de">
  237. <head>
  238. <title>{{ email_title }}</title>
  239. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  240. <meta name="viewport" content="width=device-width">
  241. <link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
  242. <style>
  243. .button__cell { background: {{ shop.email_accent_color }}; }
  244. a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
  245. </style>
  246. </head>
  247.  
  248. <body>
  249.  
  250. <table class="body">
  251. <tr>
  252. <td>
  253.  
  254. <table class="header row">
  255. <tr>
  256. <td class="header__cell">
  257. <center>
  258.  
  259. <table class="container">
  260. <tr>
  261. <td>
  262.  
  263. <table class="row">
  264. <tr>
  265. <td class="shop-name__cell">
  266. {% if shop.email_logo_url %}
  267. <img src="{{shop.email_logo_url}}" alt="{{ shop.name }}" width="{{ shop.email_logo_width }}">
  268. {% else %}
  269. <h1 class="shop-name__text">
  270. <a href="{{shop.url}}">{{ shop.name }}</a>
  271. </h1>
  272. {% endif %}
  273. </td>
  274.  
  275. <td class="order-number__cell">
  276. <span class="order-number__text">
  277. Bestellung {{ order_name }}
  278. </span>
  279. </td>
  280. </tr>
  281. </table>
  282.  
  283. </td>
  284. </tr>
  285. </table>
  286.  
  287. </center>
  288. </td>
  289. </tr>
  290. </table>
  291.  
  292. <table class="row content">
  293. <tr>
  294. <td class="content__cell">
  295. <center>
  296. <table class="container">
  297. <tr>
  298. <td>
  299.  
  300. <h2>{{ email_title }}</h2>
  301. <p>{{ email_body }}</p>
  302. {% if fulfillment.estimated_delivery_at %}
  303. <p>{{ email_emphasis }}</p>
  304. {% endif %}
  305. {% if order_status_url %}
  306. <table class="row actions">
  307. <tr>
  308. <td class="actions__cell">
  309. <table class="button main-action-cell">
  310. <tr>
  311. <td class="button__cell"><a href="{{ fulfillment.tracking_urls }}" class="button__text">Meine Bestellung verfolgen</a></td>
  312. </tr>
  313. </table>
  314. {% if shop.url %}
  315. <table class="link secondary-action-cell">
  316. <tr>
  317. <td class="link__cell"><a href="{{ shop.url }}" class="link__text"><span class='or'>oder</span> Shop besuchen</a></td>
  318. </tr>
  319. </table>
  320. {% endif %}
  321.  
  322. </td>
  323. </tr>
  324. </table>
  325.  
  326. {% else %}
  327. {% if shop.url %}
  328. <table class="row actions">
  329. <tr>
  330. <td class="actions__cell">
  331. <table class="button main-action-cell">
  332. <tr>
  333. <td class="button__cell"><a href="{{ shop.url }}" class="button__text">Shop besuchen</a></td>
  334. </tr>
  335. </table>
  336. </td>
  337. </tr>
  338. </table>
  339. {% endif %}
  340.  
  341. {% endif %}
  342.  
  343. </td>
  344. </tr>
  345. </table>
  346. </center>
  347. </td>
  348. </tr>
  349. </table>
  350.  
  351. <table class="row section">
  352. <tr>
  353. <td class="section__cell">
  354. <center>
  355. <table class="container">
  356. <tr>
  357. <td>
  358. <h3>Verschickte Artikel</h3>
  359. </td>
  360. </tr>
  361. </table>
  362. <table class="container">
  363. <tr>
  364. <td>
  365.  
  366.  
  367. <table class="row">
  368. {% for line in fulfillment.fulfillment_line_items %}
  369.  
  370. {% if item_count == 1 %}
  371. {% assign columnWrapperClass = 'order-list__item--single' %}
  372. {% elsif forloop.first == true %}
  373. {% assign columnWrapperClass = 'order-list__item--first' %}
  374. {% elsif forloop.last == true %}
  375. {% assign columnWrapperClass = 'order-list__item--last' %}
  376. {% else %}
  377. {% assign columnWrapperClass = '' %}
  378. {% endif %}
  379. <tr class="order-list__item {{columnWrapperClass}}">
  380. <td class="order-list__item__cell">
  381. <table>
  382. <td>
  383. {% if line.line_item.image %}
  384. <img src="{{ line.line_item | img_url: 'compact_cropped' }}" align="left" width="60" height="60" class="order-list__product-image"/>
  385. {% endif %}
  386. </td>
  387. <td class="order-list__product-description-cell">
  388. {% if line.line_item.product.title %}
  389. {% assign line_title = line.line_item.product.title %}
  390. {% else %}
  391. {% assign line_title = line.line_item.title %}
  392. {% endif %}
  393. <span class="order-list__item-title">{{ line_title }} × {{ line.line_item.quantity }}</span><br/>
  394. {% if line.line_item.variant.title != 'Default Title' %}
  395. <span class="order-list__item-variant">{{ line.line_item.variant.title }}</span>
  396. {% endif %}
  397. </td>
  398. </table>
  399. </td>
  400. </tr>{% endfor %}
  401. </table>
  402.  
  403.  
  404. </td>
  405. </tr>
  406. </table>
  407. </center>
  408. </td>
  409. </tr>
  410. </table>
  411.  
  412. <table class="row footer">
  413. <tr>
  414. <td class="footer__cell">
  415. <center>
  416. <table class="container">
  417. <tr>
  418. <td>
  419. <p class="disclaimer__subtext">Bei Fragen, antworte einfach auf diese Email oder schreibe uns auf <a href="mailto:{{ shop.email }}">{{ shop.email }}</a></p>
  420. </td>
  421. </tr>
  422. </table>
  423. </center>
  424. </td>
  425. </tr>
  426. </table>
  427.  
  428. <img src="{{ 'notifications/spacer.png' | shopify_asset_url }}" class="spacer" height="1" />
  429.  
  430. </td>
  431. </tr>
  432. </table>
  433. </body>
  434. </html>
  435.  
  436. {% endcase %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement