x.id===id))return i;}
@@ -407,7 +395,6 @@ function renderTimeline(){
''+item.emoji+'
'+
''+item.name+' '+item.tags.map(t=>''+t+'').join('')+'
'+
'
'+item.desc+'
'+
- ''+fmt$(item.price)+'
'+
''+
'';
+ '';
}).join('');
- const total=cartTotal();
return 'YOUR ORDER
SOLARPUNK SUMMIT ยท pickup at the stand window
'+
(rows||'๐งบ
Nothing here yet โ add something from the schedule.
')+
- 'Total'+fmt$(total)+'
'+
'Free pre-order โ pay at the stand when you pick up.
'+
'';
}
@@ -502,7 +487,7 @@ function stepCheckout(){
''+
''+
''+
- 'Total ยท '+cartCount()+' items'+fmt$(cartTotal())+'
'+
+ 'Total'+cartCount()+' items
'+
''+
''+
'';
@@ -552,7 +537,6 @@ function afterCartChange(){saveCart();renderFab();renderTimeline();renderSheet()
/* ============================== ORDERS (server-backed) ============================== */
async function placeOrder(info){
- const usd=cartTotal();
const day=FEST.days.find(d=>d.items.some(it=>info.window&&Math.abs(it.start-info.window[0])<1&&Math.abs(it.end-info.window[1])<1))||FEST.days[state.dayIdx];
const pickupLabel=fmtT(info.window[0])+' \u2013 '+fmtT(info.window[1]);
const ids=Object.keys(state.cart);
@@ -565,7 +549,7 @@ async function placeOrder(info){
body:JSON.stringify({
name:info.name,notes:info.notes,items:state.cart,
window:info.window,pickupLabel,itemsSummary,
- stand,totalUsd:usd,
+ stand,
day:day.name+' '+day.date
})
});
@@ -644,7 +628,7 @@ function renderOrders(){
''+esc(o.code)+''+badge+'
'+
''+esc(o.day||'')+' \u00b7 pickup '+esc(o.pickupLabel||'')+' \u00b7 '+esc(o.name||'')+(o.notes?' \u00b7 \u201c'+esc(o.notes)+'\u201d':'')+'
'+
''+esc(o.itemsSummary||'')+'
'+
- ''+fmt$(o.totalUsd||0)+''+esc(o.stand||'')+'
'+
+ ''+esc(o.stand||'')+'
'+
readyBanner+
(o.status!=='COLLECTED'&&o.status!=='CANCELLED'?'':'')+
'';