From 0dff79f88947a433e30790febca36a204ce4fac4 Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Sat, 21 Dec 2019 13:23:28 +1030 Subject: [PATCH] Cleaning up code --- routes/index.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/routes/index.js b/routes/index.js index 61ee71e..927251d 100644 --- a/routes/index.js +++ b/routes/index.js @@ -73,31 +73,6 @@ router.get('/emptycart', async (req, res, next) => { emptyCart(req, res, ''); }); -// router.get('/checkout', async (req, res, next) => { -// const config = req.app.config; - -// // if there is no items in the cart then render a failure -// if(!req.session.cart){ -// req.session.message = 'The are no items in your cart. Please add some items before checking out'; -// req.session.messageType = 'danger'; -// res.redirect('/'); -// return; -// } - -// // render the checkout -// res.render(`${config.themeViews}checkout`, { -// title: 'Checkout', -// config: req.app.config, -// session: req.session, -// checkout: 'hidden', -// page: 'checkout', -// message: clearSessionValue(req.session, 'message'), -// messageType: clearSessionValue(req.session, 'messageType'), -// helpers: req.handlebars.helpers, -// showFooter: 'showFooter' -// }); -// }); - router.get('/checkout/information', async (req, res, next) => { const config = req.app.config;