checkout.html (1094B)
1 $def with (checkoutform,bag,productname,errormsg,db,getprice) 2 $ totsats = 0 3 $ toteuro = 0 4 <div id="container"> 5 <div id="default"> 6 <a href="/shop">go back</a> 7 <br> 8 <h2>Checkout</h2> 9 in your order:<br> 10 $for i in bag: 11 $ goodies = db.query("SELECT * FROM soundlink WHERE id='" +i.product+"';") 12 $code: 13 price = getprice(i.product) 14 quantity = i.quantity 15 p_totsats=i.quantity*price[0] 16 p_toteuro=i.quantity*price[1] 17 $i.quantity x $productname(i.product) 18 <a href="/dropitem/$i.product">X</a> $p_totsats $p_toteuro€<br> 19 $for g in goodies: 20 $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png': 21 <img src="/static/img/thumb/$g.soundname" style="width:120px"><br> 22 $code: 23 totsats += p_totsats 24 toteuro += p_toteuro 25 $if totsats > 0: 26 <br> 27 total: $totsats Satoshi or $toteuro € 28 <br> 29 Order is only reserved once paid. 30 <br> 31 <h2>$errormsg</h2> 32 <div id="addevent"> 33 <form method="POST"> 34 $:checkoutform.render() 35 </form> 36 </div> 37 <a href="/shop"><<<<<< back shoppin for more!!</a> 38 </div> 39 </div> 40 </div>