Sentidos Café skips a traditional shopping cart entirely. Instead, every order button on the site constructs a deep-link to the WhatsApp API that opens a pre-filled conversation with the café. Customers tap once, review the message, and hit send — the order lands directly in WhatsApp without any account creation or app download.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Jimmy13anhelo/paginaweb2.github.io/llms.txt
Use this file to discover all available pages before exploring further.
How the WhatsApp API Link Works
The WhatsApp send-link format is:| Parameter | Description |
|---|---|
phone | International phone number without + or spaces (e.g. 51937604465) |
text | URL-encoded message that pre-fills the WhatsApp chat input |
window.open(url, '_blank'), so the customer’s current page stays intact.
Phone Number & Message Template
Both the phone number and the message template live inbuscador.js. The café’s Cusco number is stored as a plain string constant:
abrirWhatsapp() helper assembles the full URL:
Two Types of WhatsApp Buttons
1. Inline Order Buttons (.btn-wsp-pedido)
One button lives inside each combo card in the accordion gallery. The button’s data-producto attribute holds the exact product name, which is passed to abrirWhatsapp() on click.
buscador.js loops over every .btn-wsp-pedido element:
2. Floating Button (#btn-wsp-flotante)
A persistent floating button is fixed to the bottom-right corner of every page and is always visible while scrolling. It carries data-producto="Consulta General", so clicking it opens a generic inquiry message rather than a product-specific one.
position: fixed; bottom: 25px; right: 25px; and a z-index: 9999 so it floats above all page content.
Configuration Reference
Change the Phone Number
Open Use digits only — no
buscador.js and update the numeroTelefono constant:+, no spaces, no country code prefix in this variable. The WhatsApp API accepts the number as-is when the phone parameter is set.Customise the Message
Edit the template string inside The
abrirWhatsapp():${producto} placeholder is replaced at runtime with the value from data-producto. Keep encodeURIComponent(mensaje) in the URL construction.The
api.whatsapp.com/send link works for any WhatsApp account — personal or Business — and does not require the customer to have the café’s number saved in their contacts. The conversation opens instantly in the WhatsApp app (mobile) or WhatsApp Web (desktop), whichever is available.