Allow for order wide comments on payment
parent
4c72bbaa87
commit
5db27a523b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
<li class="list-group-item"><strong> State: </strong><span class="pull-right">{{result.orderState}}</span></li>
|
||||
<li class="list-group-item"><strong> Postcode/Zipcode: </strong><span class="pull-right">{{result.orderPostcode}}</span></li>
|
||||
<li class="list-group-item"><strong> Phone number: </strong><span class="pull-right">{{result.orderPhoneNumber}}</span></li>
|
||||
<li class="list-group-item"><strong> Order comment: </strong><span class="pull-right">{{result.orderComment}}</span></li>
|
||||
|
||||
<li class="list-group-item"> </li>
|
||||
<li class="list-group-item"><strong class="text-info">Products ordered</strong></li>
|
||||
|
|
|
@ -42,4 +42,9 @@
|
|||
<div class="form-group">
|
||||
<input type="number" class="form-control customerDetails" id="shipPhoneNumber" name="shipPhoneNumber" placeholder="Phone number" value="{{session.customer.phone}}" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-12">
|
||||
<div class="form-group">
|
||||
<textarea class="form-control customerDetails" placeholder="Order comment" id="orderComment" name="orderComment"></textarea>
|
||||
</div>
|
||||
</div>
|
|
@ -24,4 +24,7 @@
|
|||
</div>
|
||||
<div class="input-field col s12">
|
||||
<input type="number" class="customerDetails" id="shipPhoneNumber" name="shipPhoneNumber" placeholder="Phone number" value="{{session.customer.phone}}" required>
|
||||
</div>
|
||||
<div class="input-field col s12">
|
||||
<textarea class="customerDetails" placeholder="Order comment" id="orderComment" name="orderComment"></textarea>
|
||||
</div>
|
|
@ -24,4 +24,7 @@
|
|||
</div>
|
||||
<div class="input-field col s12">
|
||||
<input type="number" class="customerDetails" id="shipPhoneNumber" name="shipPhoneNumber" placeholder="Phone number" value="{{session.customer.phone}}" required>
|
||||
</div>
|
||||
<div class="input-field col s12">
|
||||
<textarea class="customerDetails" placeholder="Order comment" id="orderComment" name="orderComment"></textarea>
|
||||
</div>
|
Loading…
Reference in New Issue