Guest User

Stornobetätigung

a guest
Jan 7th, 2017
1,072
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {% capture email_title %}Deine Bestellung wurde storniert{% endcapture %}
  2. {% capture email_body %}
  3. Bestellung {{ name }} wurde storniert
  4. {% case cancel_reason %}
  5. {% when 'customer' %}
  6. auf deine Anfrage
  7. {% when 'inventory' %}
  8. weil wir nicht genug Produkte auf Lager haben
  9. because we did not have enough stock to fulfill your order
  10. {% when 'fraud' %}
  11. weil unser System eine Betrugswarnung ausgegeben hat
  12. {% when 'other' %}
  13. wegen unvorhersehbarer Umstände
  14. {% endcase %}
  15.  
  16. {% if financial_status == 'voided' %}
  17. and deine Zahlung wurde annuliert
  18. {% elsif financial_status == 'refunded' %}
  19. und deine Zahlung wurde zurückerstattet
  20. {% endif %}
  21. .
  22. {% endcapture %}
  23.  
  24. <!DOCTYPE html>
  25. <html lang="en">
  26. <head>
  27. <title>{{ email_title }}</title>
  28. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  29. <meta name="viewport" content="width=device-width">
  30. <link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
  31. <style>
  32. .button__cell { background: {{ shop.email_accent_color }}; }
  33. a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
  34. </style>
  35. </head>
  36.  
  37. <body>
  38. <table class="body">
  39. <tr>
  40. <td>
  41.  
  42. <table class="header row">
  43. <tr>
  44. <td class="header__cell">
  45. <center>
  46.  
  47. <table class="container">
  48. <tr>
  49. <td>
  50.  
  51. <table class="row">
  52. <tr>
  53. <td class="shop-name__cell">
  54. {% if shop.email_logo_url %}
  55. <img src="{{shop.email_logo_url}}" alt="{{ shop.name }}" width="{{ shop.email_logo_width }}">
  56. {% else %}
  57. <h1 class="shop-name__text">
  58. <a href="{{shop.url}}">{{ shop.name }}</a>
  59. </h1>
  60. {% endif %}
  61. </td>
  62.  
  63. <td class="order-number__cell">
  64. <span class="order-number__text">
  65. Bestellung {{ order_name }}
  66. </span>
  67. </td>
  68. </tr>
  69. </table>
  70.  
  71. </td>
  72. </tr>
  73. </table>
  74.  
  75. </center>
  76. </td>
  77. </tr>
  78. </table>
  79.  
  80. <table class="row content">
  81. <tr>
  82. <td class="content__cell">
  83. <center>
  84. <table class="container">
  85. <tr>
  86. <td>
  87.  
  88. <h2>{{ email_title }}</h2>
  89. <p>{{ email_body }}</p>
  90.  
  91. </td>
  92. </tr>
  93. </table>
  94. </center>
  95. </td>
  96. </tr>
  97. </table>
  98.  
  99. <table class="row section">
  100. <tr>
  101. <td class="section__cell">
  102. <center>
  103. <table class="container">
  104. <tr>
  105. <td>
  106. <h3>Erstattete Produkte</h3>
  107. </td>
  108. </tr>
  109. </table>
  110. <table class="container">
  111. <tr>
  112. <td>
  113.  
  114.  
  115. <table class="row">
  116. {% for line in line_items %}
  117.  
  118. {% if item_count == 1 %}
  119. {% assign columnWrapperClass = 'order-list__item--single' %}
  120. {% elsif forloop.first == true %}
  121. {% assign columnWrapperClass = 'order-list__item--first' %}
  122. {% elsif forloop.last == true %}
  123. {% assign columnWrapperClass = 'order-list__item--last' %}
  124. {% else %}
  125. {% assign columnWrapperClass = '' %}
  126. {% endif %}
  127. <tr class="order-list__item {{columnWrapperClass}}">
  128. <td class="order-list__item__cell">
  129. <table>
  130. <td>
  131. {% if line.image %}
  132. <img src="{{ line | img_url: 'compact_cropped' }}" align="left" width="60" height="60" class="order-list__product-image"/>
  133. {% endif %}
  134. </td>
  135. <td class="order-list__product-description-cell">
  136. {% if line.product.title %}
  137. {% assign line_title = line.product.title %}
  138. {% else %}
  139. {% assign line_title = line.title %}
  140. {% endif %}
  141. <span class="order-list__item-title">{{ line_title }} × {{ line.quantity }}</span><br/>
  142. {% if line.variant.title != 'Default Title' %}
  143. <span class="order-list__item-variant">{{ line.variant.title }}</span>
  144. {% endif %}
  145. </td>
  146. <td class="order-list__price-cell">
  147. {% if line.original_line_price != line.line_price %}
  148. <del class="order-list__item-original-price">{{ line.original_line_price | money }}</del>
  149. {% endif %}
  150. <p class="order-list__item-price">{{ line.line_price | money }}</p>
  151. </td>
  152. </table>
  153. </td>
  154. </tr>{% endfor %}
  155. </table>
  156.  
  157. <table class="row subtotal-lines">
  158. <tr>
  159. <td class="subtotal-spacer"></td>
  160. <td>
  161. <table class="row subtotal-table">
  162. {% if discounts %}
  163. {% capture discount_title %}Rabatt {% if discounts.first.code %}({{ discounts.first.code }}){% endif %}{% endcapture %}
  164.  
  165. <tr class="subtotal-line">
  166. <td class="subtotal-line__title">
  167. <p>
  168. <span>{{ discount_title }}</span>
  169. </p>
  170. </td>
  171. <td class="subtotal-line__value">
  172. <strong>{{ discounts_savings | money }}</strong>
  173. </td>
  174. </tr>
  175.  
  176. {% endif %}
  177.  
  178.  
  179. <tr class="subtotal-line">
  180. <td class="subtotal-line__title">
  181. <p>
  182. <span>Zwischensummer</span>
  183. </p>
  184. </td>
  185. <td class="subtotal-line__value">
  186. <strong>{{ subtotal_price | money }}</strong>
  187. </td>
  188. </tr>
  189.  
  190.  
  191. <tr class="subtotal-line">
  192. <td class="subtotal-line__title">
  193. <p>
  194. <span>Versand</span>
  195. </p>
  196. </td>
  197. <td class="subtotal-line__value">
  198. <strong>{{ shipping_price | money }}</strong>
  199. </td>
  200. </tr>
  201.  
  202.  
  203. {% for line in tax_lines %}
  204.  
  205. <tr class="subtotal-line">
  206. <td class="subtotal-line__title">
  207. <p>
  208. <span>{{ line.title }}</span>
  209. </p>
  210. </td>
  211. <td class="subtotal-line__value">
  212. <strong>{{ line.price | money }}</strong>
  213. </td>
  214. </tr>
  215.  
  216. {% endfor %}
  217. </table>
  218. <table class="row subtotal-table subtotal-table--total">
  219.  
  220. <tr class="subtotal-line">
  221. <td class="subtotal-line__title">
  222. <p>
  223. <span>Summe</span>
  224. </p>
  225. </td>
  226. <td class="subtotal-line__value">
  227. <strong>{{ total_price | money_with_currency }}</strong>
  228. </td>
  229. </tr>
  230.  
  231. </table>
  232.  
  233. {% assign transaction_size = 0 %}
  234. {% for transaction in transactions %}
  235. {% unless transaction.kind == "capture" or transaction.kind == "void" %}
  236. {% assign transaction_size = transaction_size | plus: 1 %}
  237. {% endunless %}
  238. {% endfor %}
  239.  
  240. {% if transaction_size > 1 %}
  241. <table class="row subtotal-table">
  242. <tr><td colspan="2" class="subtotal-table__line"></td></tr>
  243. <tr><td colspan="2" class="subtotal-table__small-space"></td></tr>
  244.  
  245. {% for transaction in transactions %}
  246. {% if (transaction.status == "success") and (transaction.kind == "authorization" or transaction.kind == "sale") %}
  247. {% if transaction.payment_details.credit_card_company %}
  248. {% capture transaction_name %}{{ transaction.payment_details.credit_card_company }} (ending in {{ transaction.payment_details.credit_card_last_four_digits }}){% endcapture %}
  249. {% else %}
  250. {% capture transaction_name %}{{ transaction.gateway | replace: "_", " " | capitalize }}{% endcapture %}
  251. {% endif %}
  252.  
  253.  
  254. <tr class="subtotal-line">
  255. <td class="subtotal-line__title">
  256. <p>
  257. <span>{{transaction_name}}</span>
  258. </p>
  259. </td>
  260. <td class="subtotal-line__value">
  261. <strong>{{ transaction.amount | money }}</strong>
  262. </td>
  263. </tr>
  264.  
  265. {% endif %}
  266. {% if transaction.kind == 'refund' %}
  267. {% if transaction.payment_details.credit_card_company %}
  268. {% assign refund_method_title = transaction.payment_details.credit_card_company %}
  269. {% else %}
  270. {% assign refund_method_title = transaction.gateway %}
  271. {% endif %}
  272.  
  273.  
  274. <tr class="subtotal-line">
  275. <td class="subtotal-line__title">
  276. <p>
  277. <span>Erstattung</span>
  278. <br>
  279. <small>{{ refund_method_title | capitalize }}</small>
  280. </p>
  281. </td>
  282. <td class="subtotal-line__value">
  283. <strong>- {{ transaction.amount | money }}</strong>
  284. </td>
  285. </tr>
  286.  
  287. {% endif %}
  288. {% endfor %}
  289. </table>
  290. {% endif %}
  291. </td>
  292. </tr>
  293. </table>
  294.  
  295. </td>
  296. </tr>
  297. </table>
  298. </center>
  299. </td>
  300. </tr>
  301. </table>
  302.  
  303. <table class="row footer">
  304. <tr>
  305. <td class="footer__cell">
  306. <center>
  307. <table class="container">
  308. <tr>
  309. <td>
  310. <p class="disclaimer__subtext">Bei Fragen kontaktiere uns unter <a href="mailto:{{ shop.email }}">{{ shop.email }}</a></p>
  311. </td>
  312. </tr>
  313. </table>
  314. </center>
  315. </td>
  316. </tr>
  317. </table>
  318. <img src="{{ 'notifications/spacer.png' | shopify_asset_url }}" class="spacer" height="1" />
  319. </td>
  320. </tr>
  321. </table>
  322. </body>
  323. </html>
RAW Paste Data