Advertisement
sparkweb

Order Desk: sample customer email

Aug 6th, 2014
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.54 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  2. <html>
  3. <head>
  4. <style type="text/css">
  5. body {
  6.     font-family: Arial;
  7. }
  8. </style>
  9. </head>
  10. <body>
  11. <p>Your order has been placed.</p>
  12.  
  13. <p>{{ shipping.first_name }} {{ shipping.last_name }}<br>
  14. {% if shipping.company %}{{ shipping.company }}<br>{% endif %}
  15. {{ shipping.address1 }}<br>
  16. {% if shipping.address2 %}{{ shipping.address2 }}<br>{% endif %}
  17. {{ shipping.city }}, {{ shipping.state }} {{ shipping.postal_code }}<br>
  18. {{ shipping.country }}</p>
  19.  
  20. <p>
  21. <strong>Order ID: </strong>{{ source_id }}<br>
  22. <strong>Order Date: </strong>{{ date_added|date_modify("+0 hours")|date("m/d/Y", store_timezone) }}<br>
  23. </p>
  24.  
  25. <ul>
  26. {% for item in order_items %}
  27.     <li>
  28.     <b>{{ item.name }}</b><br>
  29.     Price {{ item.price }}<br>
  30.     SKU: {{ item.code }}<br>
  31.     Quantity: {{ item.quantity }}
  32.     </li>
  33.     {% if item.variation_list|length > 0 %}
  34.         <ul>
  35.  
  36.         {% for key, val in item.variation_list %}
  37.             <li>{{ key }}: {{ val }}</li>
  38.         {% endfor %}
  39.  
  40.         </ul>
  41.     {% endif %}
  42. {% endfor %}
  43. </ul>
  44.  
  45. <p>
  46. <b>Subtotal:</b> {{ product_total|money_format }}<br>
  47. <b>Shipping:</b> {{ shipping_total|money_format }}<br>
  48. <b>Tax:</b> {{ tax_total|money_format }}<br>
  49.  
  50.                 {% if discount_list|length > 0 %}
  51.                     {% for discount in discount_list %}
  52.                         <b>{{ discount.name|e }}:</b> {{ discount.amount|money_format }}
  53.                     {% endfor %}
  54.                 {% endif %}
  55.  
  56. <b>Total:</b> {{ order_total|money_format }}
  57. </p>
  58.  
  59. <p>Thank you,</p>
  60.  
  61. <p><i>{{ store_name }}</i></p>
  62. </body>
  63. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement