Comedor 22 de Mayo

Comida casera hecha con cariño · Santa Lucía del Camino, Oax.

Lun–Sáb 8:30am–5:30pm · Dom 8:30am–4pm

0 productosToca para ver tu pedido
$0

Elige una opción

Tu pedido

Total$0
✓ Ubicación agregada
+ total + ').'); return; } cambio = pagaCon - total; } currentOrderNumber = buildOrderNumber(); const nombre = document.getElementById('nombreCliente').value.trim(); const now = new Date(); const fechaStr = now.toLocaleDateString('es-MX') + ' ' + now.toLocaleTimeString('es-MX', {hour:'2-digit', minute:'2-digit'}); let html = `
🍴 Comedor 22 de Mayo
${fechaStr}
Pedido #${currentOrderNumber}

${tipo === 'Mesa' ? 'Mesa: ' + mesa : 'Entrega a domicilio'}
${nombre ? `
Cliente: ${nombre}
` : ''} ${tipo === 'Domicilio' && direccion ? `
Dirección: ${direccion}
` : ''} ${tipo === 'Domicilio' && sharedLocationLink ? `
📍 Ubicación GPS compartida
` : ''}
Pago: ${metodoPago}${metodoPago==='Efectivo' ? ' (paga con document.getElementById('volverBtn').onclick = function(){ document.getElementById('cartView').style.display = 'block'; document.getElementById('ticketView').style.display = 'none'; }; document.getElementById('confirmarBtn').onclick = function(){ const items = Object.values(cart); const tipo = document.getElementById('tipoPedido').value; const mesa = document.getElementById('mesaNumero').value.trim(); const direccion = document.getElementById('direccionTexto').value.trim(); const nombre = document.getElementById('nombreCliente').value.trim(); const {total} = cartTotals(); let msg = `Pedido #${currentOrderNumber}\n`; if(tipo === 'Mesa'){ msg += 'Mesa ' + mesa + '\n'; } else { msg += 'Pedido a domicilio\n'; if(direccion) msg += 'Dirección: ' + direccion + '\n'; if(sharedLocationLink) msg += 'Ubicación: ' + sharedLocationLink + '\n'; } if(nombre) msg += 'Nombre: ' + nombre + '\n'; msg += '\n'; items.forEach(c=>{ msg += `${c.n} x${c.qty} - $${c.qty*c.p}\n`; }); msg += `\nTotal: $${total}`; const url = `https://wa.me/${WHATSAPP_NUMBER}?text=${encodeURIComponent(msg)}`; window.open(url, '_blank'); }; render(); + pagaCon + ')' : ''}

`; items.forEach(c=>{ html += `
${c.n} x${c.qty}${c.qty*c.p}
`; }); html += `
Total${total}
`; if(metodoPago==='Efectivo'){ html += `
Paga con${pagaCon}
`; html += `
Cambio${cambio}
`; } document.getElementById('ticketContent').innerHTML = html; document.getElementById('cartView').style.display = 'none'; document.getElementById('ticketView').style.display = 'block'; }; document.getElementById('volverBtn').onclick = function(){ document.getElementById('cartView').style.display = 'block'; document.getElementById('ticketView').style.display = 'none'; }; document.getElementById('confirmarBtn').onclick = function(){ const items = Object.values(cart); const tipo = document.getElementById('tipoPedido').value; const mesa = document.getElementById('mesaNumero').value.trim(); const direccion = document.getElementById('direccionTexto').value.trim(); const nombre = document.getElementById('nombreCliente').value.trim(); const {total} = cartTotals(); let msg = `Pedido #${currentOrderNumber}\n`; if(tipo === 'Mesa'){ msg += 'Mesa ' + mesa + '\n'; } else { msg += 'Pedido a domicilio\n'; if(direccion) msg += 'Dirección: ' + direccion + '\n'; if(sharedLocationLink) msg += 'Ubicación: ' + sharedLocationLink + '\n'; } if(nombre) msg += 'Nombre: ' + nombre + '\n'; msg += '\n'; items.forEach(c=>{ msg += `${c.n} x${c.qty} - $${c.qty*c.p}\n`; }); msg += `\nTotal: $${total}`; const url = `https://wa.me/${WHATSAPP_NUMBER}?text=${encodeURIComponent(msg)}`; window.open(url, '_blank'); }; render(); + pagaCon + ', cambio render(); + total + ').'); return; } cambio = pagaCon - total; } currentOrderNumber = buildOrderNumber(); const nombre = document.getElementById('nombreCliente').value.trim(); const now = new Date(); const fechaStr = now.toLocaleDateString('es-MX') + ' ' + now.toLocaleTimeString('es-MX', {hour:'2-digit', minute:'2-digit'}); let html = `
🍴 Comedor 22 de Mayo
${fechaStr}
Pedido #${currentOrderNumber}

${tipo === 'Mesa' ? 'Mesa: ' + mesa : 'Entrega a domicilio'}
${nombre ? `
Cliente: ${nombre}
` : ''} ${tipo === 'Domicilio' && direccion ? `
Dirección: ${direccion}
` : ''} ${tipo === 'Domicilio' && sharedLocationLink ? `
📍 Ubicación GPS compartida
` : ''}
Pago: ${metodoPago}${metodoPago==='Efectivo' ? ' (paga con document.getElementById('volverBtn').onclick = function(){ document.getElementById('cartView').style.display = 'block'; document.getElementById('ticketView').style.display = 'none'; }; document.getElementById('confirmarBtn').onclick = function(){ const items = Object.values(cart); const tipo = document.getElementById('tipoPedido').value; const mesa = document.getElementById('mesaNumero').value.trim(); const direccion = document.getElementById('direccionTexto').value.trim(); const nombre = document.getElementById('nombreCliente').value.trim(); const {total} = cartTotals(); let msg = `Pedido #${currentOrderNumber}\n`; if(tipo === 'Mesa'){ msg += 'Mesa ' + mesa + '\n'; } else { msg += 'Pedido a domicilio\n'; if(direccion) msg += 'Dirección: ' + direccion + '\n'; if(sharedLocationLink) msg += 'Ubicación: ' + sharedLocationLink + '\n'; } if(nombre) msg += 'Nombre: ' + nombre + '\n'; msg += '\n'; items.forEach(c=>{ msg += `${c.n} x${c.qty} - $${c.qty*c.p}\n`; }); msg += `\nTotal: $${total}`; const url = `https://wa.me/${WHATSAPP_NUMBER}?text=${encodeURIComponent(msg)}`; window.open(url, '_blank'); }; render(); + pagaCon + ')' : ''}

`; items.forEach(c=>{ html += `
${c.n} x${c.qty}${c.qty*c.p}
`; }); html += `
Total${total}
`; if(metodoPago==='Efectivo'){ html += `
Paga con${pagaCon}
`; html += `
Cambio${cambio}
`; } document.getElementById('ticketContent').innerHTML = html; document.getElementById('cartView').style.display = 'none'; document.getElementById('ticketView').style.display = 'block'; }; document.getElementById('volverBtn').onclick = function(){ document.getElementById('cartView').style.display = 'block'; document.getElementById('ticketView').style.display = 'none'; }; document.getElementById('confirmarBtn').onclick = function(){ const items = Object.values(cart); const tipo = document.getElementById('tipoPedido').value; const mesa = document.getElementById('mesaNumero').value.trim(); const direccion = document.getElementById('direccionTexto').value.trim(); const nombre = document.getElementById('nombreCliente').value.trim(); const {total} = cartTotals(); let msg = `Pedido #${currentOrderNumber}\n`; if(tipo === 'Mesa'){ msg += 'Mesa ' + mesa + '\n'; } else { msg += 'Pedido a domicilio\n'; if(direccion) msg += 'Dirección: ' + direccion + '\n'; if(sharedLocationLink) msg += 'Ubicación: ' + sharedLocationLink + '\n'; } if(nombre) msg += 'Nombre: ' + nombre + '\n'; msg += '\n'; items.forEach(c=>{ msg += `${c.n} x${c.qty} - $${c.qty*c.p}\n`; }); msg += `\nTotal: $${total}`; const url = `https://wa.me/${WHATSAPP_NUMBER}?text=${encodeURIComponent(msg)}`; window.open(url, '_blank'); }; render(); + cambio + ')'; } msg += '\n\n'; items.forEach(c=>{ msg += `${c.n} x${c.qty} - ${c.qty*c.p}\n`; }); msg += `\nTotal: ${total}`; const url = `https://wa.me/${WHATSAPP_NUMBER}?text=${encodeURIComponent(msg)}`; window.open(url, '_blank'); }; render(); + total + ').'); return; } cambio = pagaCon - total; } currentOrderNumber = buildOrderNumber(); const nombre = document.getElementById('nombreCliente').value.trim(); const now = new Date(); const fechaStr = now.toLocaleDateString('es-MX') + ' ' + now.toLocaleTimeString('es-MX', {hour:'2-digit', minute:'2-digit'}); let html = `
🍴 Comedor 22 de Mayo
${fechaStr}
Pedido #${currentOrderNumber}

${tipo === 'Mesa' ? 'Mesa: ' + mesa : 'Entrega a domicilio'}
${nombre ? `
Cliente: ${nombre}
` : ''} ${tipo === 'Domicilio' && direccion ? `
Dirección: ${direccion}
` : ''} ${tipo === 'Domicilio' && sharedLocationLink ? `
📍 Ubicación GPS compartida
` : ''}
Pago: ${metodoPago}${metodoPago==='Efectivo' ? ' (paga con document.getElementById('volverBtn').onclick = function(){ document.getElementById('cartView').style.display = 'block'; document.getElementById('ticketView').style.display = 'none'; }; document.getElementById('confirmarBtn').onclick = function(){ const items = Object.values(cart); const tipo = document.getElementById('tipoPedido').value; const mesa = document.getElementById('mesaNumero').value.trim(); const direccion = document.getElementById('direccionTexto').value.trim(); const nombre = document.getElementById('nombreCliente').value.trim(); const {total} = cartTotals(); let msg = `Pedido #${currentOrderNumber}\n`; if(tipo === 'Mesa'){ msg += 'Mesa ' + mesa + '\n'; } else { msg += 'Pedido a domicilio\n'; if(direccion) msg += 'Dirección: ' + direccion + '\n'; if(sharedLocationLink) msg += 'Ubicación: ' + sharedLocationLink + '\n'; } if(nombre) msg += 'Nombre: ' + nombre + '\n'; msg += '\n'; items.forEach(c=>{ msg += `${c.n} x${c.qty} - $${c.qty*c.p}\n`; }); msg += `\nTotal: $${total}`; const url = `https://wa.me/${WHATSAPP_NUMBER}?text=${encodeURIComponent(msg)}`; window.open(url, '_blank'); }; render(); + pagaCon + ')' : ''}

`; items.forEach(c=>{ html += `
${c.n} x${c.qty}${c.qty*c.p}
`; }); html += `
Total${total}
`; if(metodoPago==='Efectivo'){ html += `
Paga con${pagaCon}
`; html += `
Cambio${cambio}
`; } document.getElementById('ticketContent').innerHTML = html; document.getElementById('cartView').style.display = 'none'; document.getElementById('ticketView').style.display = 'block'; }; document.getElementById('volverBtn').onclick = function(){ document.getElementById('cartView').style.display = 'block'; document.getElementById('ticketView').style.display = 'none'; }; document.getElementById('confirmarBtn').onclick = function(){ const items = Object.values(cart); const tipo = document.getElementById('tipoPedido').value; const mesa = document.getElementById('mesaNumero').value.trim(); const direccion = document.getElementById('direccionTexto').value.trim(); const nombre = document.getElementById('nombreCliente').value.trim(); const {total} = cartTotals(); let msg = `Pedido #${currentOrderNumber}\n`; if(tipo === 'Mesa'){ msg += 'Mesa ' + mesa + '\n'; } else { msg += 'Pedido a domicilio\n'; if(direccion) msg += 'Dirección: ' + direccion + '\n'; if(sharedLocationLink) msg += 'Ubicación: ' + sharedLocationLink + '\n'; } if(nombre) msg += 'Nombre: ' + nombre + '\n'; msg += '\n'; items.forEach(c=>{ msg += `${c.n} x${c.qty} - $${c.qty*c.p}\n`; }); msg += `\nTotal: $${total}`; const url = `https://wa.me/${WHATSAPP_NUMBER}?text=${encodeURIComponent(msg)}`; window.open(url, '_blank'); }; render();