Allow for order wide comments on payment

master
Mark Moffat 2018-10-05 22:45:12 +09:30
parent 4c72bbaa87
commit 5db27a523b
7 changed files with 15 additions and 0 deletions

View File

@ -68,6 +68,7 @@ router.post('/checkout_action', (req, res, next) => {
orderState: req.body.shipState, orderState: req.body.shipState,
orderPostcode: req.body.shipPostcode, orderPostcode: req.body.shipPostcode,
orderPhoneNumber: req.body.shipPhoneNumber, orderPhoneNumber: req.body.shipPhoneNumber,
orderComment: req.body.orderComment,
orderStatus: orderStatus, orderStatus: orderStatus,
orderDate: new Date(), orderDate: new Date(),
orderProducts: req.session.cart orderProducts: req.session.cart

View File

@ -172,6 +172,7 @@ router.post('/checkout_action', (req, res, next) => {
orderState: req.body.shipState, orderState: req.body.shipState,
orderPostcode: req.body.shipPostcode, orderPostcode: req.body.shipPostcode,
orderPhoneNumber: req.body.shipPhoneNumber, orderPhoneNumber: req.body.shipPhoneNumber,
orderComment: req.body.orderComment,
orderStatus: payment.state, orderStatus: payment.state,
orderDate: new Date(), orderDate: new Date(),
orderProducts: req.session.cart orderProducts: req.session.cart

View File

@ -48,6 +48,7 @@ router.post('/checkout_action', (req, res, next) => {
orderState: req.body.shipState, orderState: req.body.shipState,
orderPostcode: req.body.shipPostcode, orderPostcode: req.body.shipPostcode,
orderPhoneNumber: req.body.shipPhoneNumber, orderPhoneNumber: req.body.shipPhoneNumber,
orderComment: req.body.orderComment,
orderStatus: paymentStatus, orderStatus: paymentStatus,
orderDate: new Date(), orderDate: new Date(),
orderProducts: req.session.cart orderProducts: req.session.cart

View File

@ -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> 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> 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> 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">&nbsp;</li> <li class="list-group-item">&nbsp;</li>
<li class="list-group-item"><strong class="text-info">Products ordered</strong></li> <li class="list-group-item"><strong class="text-info">Products ordered</strong></li>

View File

@ -42,4 +42,9 @@
<div class="form-group"> <div class="form-group">
<input type="number" class="form-control customerDetails" id="shipPhoneNumber" name="shipPhoneNumber" placeholder="Phone number" value="{{session.customer.phone}}" required> <input type="number" class="form-control customerDetails" id="shipPhoneNumber" name="shipPhoneNumber" placeholder="Phone number" value="{{session.customer.phone}}" required>
</div> </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> </div>

View File

@ -24,4 +24,7 @@
</div> </div>
<div class="input-field col s12"> <div class="input-field col s12">
<input type="number" class="customerDetails" id="shipPhoneNumber" name="shipPhoneNumber" placeholder="Phone number" value="{{session.customer.phone}}" required> <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> </div>

View File

@ -24,4 +24,7 @@
</div> </div>
<div class="input-field col s12"> <div class="input-field col s12">
<input type="number" class="customerDetails" id="shipPhoneNumber" name="shipPhoneNumber" placeholder="Phone number" value="{{session.customer.phone}}" required> <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> </div>