diff --git a/server/methods/core/orders.js b/server/methods/core/orders.js index 02179fc3..b1a2eb76 100644 --- a/server/methods/core/orders.js +++ b/server/methods/core/orders.js @@ -101,18 +101,31 @@ Meteor.methods({ if (result === 1) { if (packed) { // send notification that item has been packed and would be delivered shortly - // Email notification const options = { to: order.email, from: "isildurandela@gmail.com", subject: "Packed Order", - html: `

Hello,

-

Your order of ${order.items.length} item(s) of id ${order._id} has been packed and would be delivered to you shortly.

- -

Thanks for shopping with us!

-

Isildur Reaction Commerce

-
+ html: ` +
+ +
+
+ logo +
+ +

Shipping status

+

Hi,

+

Your order of ${order.items.length} item(s) of id: ${order._id} has been packed and would be delivered to you shortly.

+

Thank You for shopping with us.

+ +
+ +

© 2017 Reaction Commerce. All rights reserved

+

1119 Colorado Ave Ste. 7, Santa Monica, CA 90401

+
` }; @@ -495,12 +508,26 @@ Meteor.methods({ to: order.email, from: "isildurandela@gmail.com", subject: "Delivered Order", - html: `

Hello,

-

Your order of ${order.items.length} item(s) of id ${order._id} has been delivered.

- -

Thanks for shopping with us!

-

Isildur Reaction Commerce

-
+ html: ` +
+ +
+
+ logo +
+ +

Delivered Order

+

Hi,

+

Your order of ${order.items.length} item(s) of id: ${order._id} has been delivered.

+

Thank You for shopping with us.

+ +
+ +

© 2017 Reaction Commerce. All rights reserved

+

1119 Colorado Ave Ste. 7, Santa Monica, CA 90401

+
` }; @@ -511,7 +538,7 @@ Meteor.methods({ message: `Hi ${order.billing[0].address.fullName}. Your order of ${order.items.length} item(s) of id ${order._id} has successfully been delivered. Thanks for shopping with us. `, number: order.billing[0].address.phone }; - Meteor.call("orders/sendText", textPayload); + // Meteor.call("orders/sendText", textPayload); } return true; @@ -955,18 +982,37 @@ Meteor.methods({ if (!Reaction.hasPermission("orders")) { throw new Meteor.Error(403, "Access Denied"); } + + // send notification + const options = { to: order.email, from: "isildurandela@gmail.com", subject: "Canceled Order", - html: `

Hello,

-

Your order was canceled. Please find the details below

- -

Item Ordered: ${order.items[0].title}

-

Reason: ${cancelComment.body}

-

Thanks for shopping with us!

-

Isildur Reaction Commerce

-
+ html: ` +
+ +
+
+ logo +
+ +

Canceled Order

+

Hi,

+

Your order of + ${order.items.length} item(s) of id: ${order._id} was canceled. Please find the details below

+ +

Item Ordered: ${order.items[0].title}

+

Reason: ${cancelComment.body}

+

Thank You for shopping with us.

+ +
+ +

© 2017 Reaction Commerce. All rights reserved

+

1119 Colorado Ave Ste. 7, Santa Monica, CA 90401

+
` };