diff --git a/routes/payments/authorizenet.js b/routes/payments/authorizenet.js index 6e785dd..263668e 100644 --- a/routes/payments/authorizenet.js +++ b/routes/payments/authorizenet.js @@ -68,6 +68,7 @@ router.post('/checkout_action', (req, res, next) => { orderState: req.body.shipState, orderPostcode: req.body.shipPostcode, orderPhoneNumber: req.body.shipPhoneNumber, + orderComment: req.body.orderComment, orderStatus: orderStatus, orderDate: new Date(), orderProducts: req.session.cart diff --git a/routes/payments/paypal.js b/routes/payments/paypal.js index a5d3f56..6a660dc 100644 --- a/routes/payments/paypal.js +++ b/routes/payments/paypal.js @@ -172,6 +172,7 @@ router.post('/checkout_action', (req, res, next) => { orderState: req.body.shipState, orderPostcode: req.body.shipPostcode, orderPhoneNumber: req.body.shipPhoneNumber, + orderComment: req.body.orderComment, orderStatus: payment.state, orderDate: new Date(), orderProducts: req.session.cart diff --git a/routes/payments/stripe.js b/routes/payments/stripe.js index 931dc3b..d1e0120 100644 --- a/routes/payments/stripe.js +++ b/routes/payments/stripe.js @@ -48,6 +48,7 @@ router.post('/checkout_action', (req, res, next) => { orderState: req.body.shipState, orderPostcode: req.body.shipPostcode, orderPhoneNumber: req.body.shipPhoneNumber, + orderComment: req.body.orderComment, orderStatus: paymentStatus, orderDate: new Date(), orderProducts: req.session.cart diff --git a/views/order.hbs b/views/order.hbs index 06f3f15..abed037 100644 --- a/views/order.hbs +++ b/views/order.hbs @@ -38,6 +38,7 @@