SHARE
TWEET

Erstattungshinweis

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