Shopify WhatsApp Button Generator
A floating WhatsApp button with a pre-filled message that includes the product and its link.
wa.me links, filled in automatically
WhatsApp's wa.me/PHONE?text=MESSAGE links open a chat with your number and a pre-typed message, no account or app on your side needed. This snippet fills in [product], [url] and [price] placeholders from the actual product on the page it's shown on, so every product gets its own accurate message.
Turn on business hours to hide the button, or swap in an "we're offline" message, outside the days and times you set, checked in your own timezone in the shopper's browser.
Adding it to your theme
- 01
Enter your number
Use your full WhatsApp Business number in international format, digits only (for example 15551234567 for a US number, no +, spaces or leading 00).
- 02
Add the snippet
Online Store → Themes → Edit code → Snippets → Add a new snippet named
whatsapp-button, paste the code, then add{% render 'whatsapp-button' %}totheme.liquidjust before</body>so it appears on every page.
Questions people ask
Do I need the WhatsApp Business API for this?
No, this works with a free WhatsApp Business (or even a regular WhatsApp) account, since it's just a link that opens a chat.
What happens on pages that aren't a product page?
The [product] and [url] placeholders fall back to your store's name and homepage, so the message still makes sense.
Can I show it only on product pages?
Yes, turn on Only show on product pages.
Does this track clicks?
No. Add your own click-tracking (for example a GA4 event) if you need that; this snippet only builds the link.
Related tools
Last reviewed 30 September 2026.
