add stickers to shop and related paypal functionality
add stickers to shop without unnecessary extra csspull/7100/head
parent
9c91a84854
commit
6490d681ea
|
@ -33,6 +33,8 @@ module.exports = function(app) {
|
||||||
router.get('/labs', showLabs);
|
router.get('/labs', showLabs);
|
||||||
router.get('/stories', showTestimonials);
|
router.get('/stories', showTestimonials);
|
||||||
router.get('/shop', showShop);
|
router.get('/shop', showShop);
|
||||||
|
router.get('/shop/cancel-stickers', cancelStickers);
|
||||||
|
router.get('/shop/confirm-stickers', confirmStickers);
|
||||||
router.get('/all-stories', showAllTestimonials);
|
router.get('/all-stories', showAllTestimonials);
|
||||||
router.get('/terms', terms);
|
router.get('/terms', terms);
|
||||||
router.get('/privacy', privacy);
|
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) {
|
function submitCatPhoto(req, res) {
|
||||||
res.send('Submitted!');
|
res.send('Submitted!');
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,14 +3,15 @@ block content
|
||||||
h1.text-center Shop
|
h1.text-center Shop
|
||||||
hr
|
hr
|
||||||
.row
|
.row
|
||||||
.col-xs-12.col-sm-10.col-sm-offset-1
|
.col-xs-12.col-sm-8.col-sm-offset-2.col-md-6.col-md-offset-3.text-center
|
||||||
.row
|
img.img-responsive.img-center(src='http://i.imgur.com/MH1CvwY.jpg')
|
||||||
.col-xs-12.text-center
|
h3 Free Code Camp laptop stickers are here!
|
||||||
a(href='https://teespring.com/free-code-camp-feb' target='_blank')
|
h4 Get two for only $5, with free shipping anywhere!
|
||||||
img.img-responsive.img-center(src='http://i.imgur.com/e50zjNy.jpg')
|
p These durable 2" (5 cm) stickers sport a matte finish, and look great anywhere - especially on your laptop.
|
||||||
h3 Free Code Camp "function call" logo t-shirt
|
html.
|
||||||
h4 100% Cotton. Unisex. $20 shipped.
|
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
|
||||||
h4 Only available until February 15.
|
<input type="hidden" name="cmd" value="_s-xclick">
|
||||||
h5 Are you outside the US? Ships from the EU  
|
<input type="hidden" name="hosted_button_id" value="R9AGYKJUCU37N">
|
||||||
a(href='https://teespring.com/free-code-camp-t-shirt-eu-shop' target='_blank') here
|
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
||||||
| .
|
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
||||||
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue