add stickers to shop and related paypal functionality

add stickers to shop without unnecessary extra css
This commit is contained in:
Quincy Larson
2016-02-17 15:07:12 -08:00
parent 9c91a84854
commit 6490d681ea
2 changed files with 25 additions and 11 deletions

View File

@@ -33,6 +33,8 @@ module.exports = function(app) {
router.get('/labs', showLabs);
router.get('/stories', showTestimonials);
router.get('/shop', showShop);
router.get('/shop/cancel-stickers', cancelStickers);
router.get('/shop/confirm-stickers', confirmStickers);
router.get('/all-stories', showAllTestimonials);
router.get('/terms', terms);
router.get('/privacy', privacy);
@@ -224,6 +226,17 @@ module.exports = function(app) {
});
}
function confirmStickers(req, res) {
req.flash('success', { msg: 'Thank you for supporting our community! You should receive your stickers in the ' +
'mail soon!'});
res.redirect('/shop');
}
function cancelStickers(req, res) {
req.flash('info', { msg: 'You\'ve cancelled your purchase of our stickers. You can '
+ 'support our community any time by buying some.'});
res.redirect('/shop');
}
function submitCatPhoto(req, res) {
res.send('Submitted!');
}