| Line 34... |
Line 34... |
| 34 |
picked_up_orders[int(order_id)] = [str(product_name), order]
|
34 |
picked_up_orders[int(order_id)] = [str(product_name), order]
|
| 35 |
subject = "Delay in delivery of your order " + str(order.id)
|
35 |
subject = "Delay in delivery of your order " + str(order.id)
|
| 36 |
body = "Dear " + order.customer_name + ",<br/><br/>Thanks for shopping at www.saholic.com.<br/><br/>In reference to your order ID " + str(order.id) + " for " + str(product_name) + " placed with us, we would like to inform you that due to some unforeseen circumstances at our warehouse, delivery would be delayed by a day or two.<br/><br/>We deeply regret the same.<br/><br/>Thanks & Regards<br/>Saholic Team "
|
36 |
body = "Dear " + order.customer_name + ",<br/><br/>Thanks for shopping at www.saholic.com.<br/><br/>In reference to your order ID " + str(order.id) + " for " + str(product_name) + " placed with us, we would like to inform you that due to some unforeseen circumstances at our warehouse, delivery would be delayed by a day or two.<br/><br/>We deeply regret the same.<br/><br/>Thanks & Regards<br/>Saholic Team "
|
| 37 |
try:
|
37 |
try:
|
| 38 |
helper_client = HelperClient().get_client()
|
38 |
helper_client = HelperClient().get_client()
|
| 39 |
helper_client.saveUserEmailForSending(order.customer_email, "", subject, body, str(order.id), "TransactionInfo")
|
39 |
helper_client.saveUserEmailForSending([order.customer_email], "", subject, body, str(order.id), "TransactionInfo", [], [])
|
| 40 |
except Exception as e:
|
40 |
except Exception as e:
|
| 41 |
print order.id
|
41 |
print order.id
|
| 42 |
except TransactionServiceException as tex:
|
42 |
except TransactionServiceException as tex:
|
| 43 |
print tex.message
|
43 |
print tex.message
|
| 44 |
|
44 |
|