浏览代码

Add ORDER_PLACED to email templates fixture

master
David Winterbottom 13 年前
父节点
当前提交
82598c93d3
共有 1 个文件被更改,包括 36 次插入21 次删除
  1. 36
    21
      sites/_fixtures/comms.json

+ 36
- 21
sites/_fixtures/comms.json 查看文件

@@ -1,32 +1,47 @@
1 1
 [
2 2
     {
3
-        "pk": 1,
4
-        "model": "customer.communicationeventtype",
3
+        "pk": 1, 
4
+        "model": "customer.communicationeventtype", 
5 5
         "fields": {
6
-            "category": "User related",
7
-            "email_body_html_template": "<p>Thank you for registering</p>",
8
-            "code": "REGISTRATION",
9
-            "sms_template": "",
10
-            "name": "Newly registered user",
11
-            "email_subject_template": "Welcome to {{ site.name }}",
12
-            "date_updated": "2012-10-16T10:23:23.059Z",
13
-            "email_body_template": "Thank you for registering",
6
+            "category": "User related", 
7
+            "email_body_html_template": "Thank you for registering", 
8
+            "code": "REGISTRATION", 
9
+            "sms_template": "", 
10
+            "name": "Newly registered user", 
11
+            "email_subject_template": "Welcome to {{ site.name }}", 
12
+            "date_updated": "2012-10-16T15:09:55.813Z", 
13
+            "email_body_template": "Thank you for registering", 
14 14
             "date_created": "2012-10-11T15:09:56.317Z"
15 15
         }
16
-    },
16
+    }, 
17 17
     {
18
-        "pk": 2,
19
-        "model": "customer.communicationeventtype",
18
+        "pk": 2, 
19
+        "model": "customer.communicationeventtype", 
20 20
         "fields": {
21
-            "category": "User related",
22
-            "email_body_html_template": "<p>You're receiving this e-mail because you requested a password reset for your user account at {{ site.name }}.</p>\r\n\r\n<p>Please go to the following page and choose a new password:</p>\r\n{{ reset_url }} \r\n\r\n<p>Thanks for using our site!</p>\r\n<p>The {{ site.name }} team</p>",
23
-            "code": "PASSWORD_RESET",
24
-            "sms_template": "",
25
-            "name": "Forgotten password",
26
-            "email_subject_template": "Resetting your password at {{ site.name }}",
27
-            "date_updated": "2012-10-16T10:21:32.909Z",
28
-            "email_body_template": "You're receiving this e-mail because you requested a password reset for your user account at {{ site.name }}.\r\n\r\nPlease go to the following page and choose a new password:\r\n{{ reset_url }} \r\n\r\nThanks for using our site!\r\nThe {{ site.name }} team",
21
+            "category": "User related", 
22
+            "email_body_html_template": "You're receiving this e-mail because you requested a password reset for your user account at {{ site.name }}.\r\n\r\n<br><br>Please go to the following page and choose a new password:\r\n{{ reset_url }} \r\n\r\n<br><br>Thanks for using our site!\r\nThe {{ site.name }} team", 
23
+            "code": "PASSWORD_RESET", 
24
+            "sms_template": "", 
25
+            "name": "Forgotten password", 
26
+            "email_subject_template": "Resetting your password at {{ site.name }}", 
27
+            "date_updated": "2012-10-16T10:55:03.987Z", 
28
+            "email_body_template": "You're receiving this e-mail because you requested a password reset for your user account at {{ site.name }}.\r\n\r\nPlease go to the following page and choose a new password:\r\n{{ reset_url }} \r\n\r\nThanks for using our site!\r\nThe {{ site.name }} team", 
29 29
             "date_created": "2012-10-16T09:47:43.471Z"
30 30
         }
31
+    }, 
32
+    {
33
+        "pk": 3, 
34
+        "model": "customer.communicationeventtype", 
35
+        "fields": {
36
+            "category": "Order related", 
37
+            "email_body_html_template": "{% load currency_filters %}Hello,<br><br>We are pleased to confirm your order {{ order.number }} has been received and will be processed shortly.<br><br>Your order contains:<br><br>{% for line in order.lines.all %}* {{ line.title }} - quantity: {{ line.quantity }} - price: {{ line.line_price_incl_tax|currency }}<br>{% endfor %}<br><br>Basket total: {{ order.basket_total_incl_tax|currency }}<br>Shipping: {{ order.shipping_incl_tax|currency }}<br>Order Total: {{ order.total_incl_tax|currency }}<br><br>Shipping address:<br><br>{% for field in order.shipping_address.active_address_fields %}&nbsp; {{ field }}<br>{% endfor %}<br><br>The {{ site.name }} team.<br>", 
38
+            "code": "ORDER_PLACED", 
39
+            "sms_template": "", 
40
+            "name": "Order confirmation", 
41
+            "email_subject_template": "Confirmation of order {{ order.number }}", 
42
+            "date_updated": "2012-10-16T11:27:09.349Z", 
43
+            "email_body_template": "{% load currency_filters %}Hello,\r\n\r\nWe are pleased to confirm your order {{ order.number }} has been received and will be processed shortly.\r\n\r\nYour order contains:\r\n\r\n{% for line in order.lines.all %}* {{ line.title }} - quantity: {{ line.quantity }} - price: {{ line.line_price_incl_tax|currency }}\r\n{% endfor %}\r\n\r\nBasket total: {{ order.basket_total_incl_tax|currency }}\r\nShipping: {{ order.shipping_incl_tax|currency }}\r\nOrder Total: {{ order.total_incl_tax|currency }}\r\n\r\nShipping address:\r\n\r\n{% for field in order.shipping_address.active_address_fields %}  {{ field }}\r\n{% endfor %}\r\n\r\nThe {{ site.name }} team.", 
44
+            "date_created": "2012-10-16T11:02:13.297Z"
45
+        }
31 46
     }
32 47
 ]

正在加载...
取消
保存