Many shoppers would rather send a quick message than fill in a contact form. They want to ask about a size, a delivery date or a gift, and they want the answer on their phone. A Shopify WhatsApp button gives them that: one tap, and a
WhatsApp chat with your store opens.
You don’t need an app for this. WhatsApp has a free link format called click to chat, and Shopify’s free themes can show it as a menu link, a floating button or a product page button. I have added these buttons to many client stores, and in this guide I show you the exact steps for Dawn and Horizon.
Here is what you will learn:
- How to build your wa.me link with a message already typed in
- Way 1: a WhatsApp link in your menu (no code)
- Way 2: a floating Shopify WhatsApp button on every page (tested code)
- Way 3: an “Ask on WhatsApp” button on product pages that names the product
- WhatsApp Business app vs the WhatsApp API, order messages and GDPR
What is a Shopify WhatsApp button?
A Shopify WhatsApp button is a normal link to WhatsApp’s click to chat address, styled as a button on your store. When a shopper taps it, WhatsApp opens a chat with your business number. On a computer, it opens WhatsApp Web instead.
WhatsApp explains this in its own help article, How to use click to chat. The shopper does not need to save your number first. Your number just needs an active WhatsApp account.
Because it is only a link, the button costs nothing and loads no extra scripts. The chat itself happens inside WhatsApp, not on your store.
Step 1: Build your WhatsApp click to chat link
Every way in this guide uses the same wa.me link. Build it once, test it on your phone, and then reuse it.
Write your number in international format
The format is https://wa.me/ followed by your full number. WhatsApp’s rule is simple: start with the country code, and leave out any plus sign, zeros at the start, brackets, dashes or spaces.
- UK: 07700 900123 becomes 447700900123
- USA: (555) 123-4567 becomes 15551234567
- Germany: 0170 1234567 becomes 491701234567
So a UK store would use https://wa.me/447700900123. Open it on your phone. If a chat with your business opens, the number is right.
Add a pre-filled message
You can also put a message in the shopper’s text box. Add ?text= to the link, then your message with every space written as %20. For example: https://wa.me/447700900123?text=Hi!%20I%20have%20a%20question.
The shopper can still edit the text before sending. Keep it short and friendly.

Way 1: Add a WhatsApp link to your menu (no code)
The fastest way needs no code at all. You add the link to your footer menu, or to your main menu, as a normal menu item.
- In your Shopify admin, go to Content, then Menus.
- Click the menu you want to edit, for example Footer menu.
- Click Add menu item and name it, for example Chat on WhatsApp.
- Paste your wa.me link into the Search for a page or paste a URL field.
- Wait for the link to show in the drop-down list and select it. Then click Save.
Shopify’s help page on editing menu items warns about step 5. If you press Enter without picking the link from the list, the item is not added, and you can get an invalid URL error.
This works in every theme, but it has one weak spot. A footer link sits at the bottom of the page, where shoppers on a product page rarely look. For a link that is always in view, use Way 2. To tidy the footer too, see my guide to Shopify footer design.
Way 2: Add a floating Shopify WhatsApp button
A floating button sits in the bottom corner of every page. It stays in view while shoppers scroll, so it is the most common WhatsApp chat set-up. You add it once, in the footer, and it shows everywhere.
Steps in Dawn and Horizon
- Go to Online Store, then Themes. Click the three dots next to your theme and choose Duplicate, so you have a backup.
- Click Customize on your live theme.
- In the left sidebar, find the Footer group and click Add section.
- Choose Custom Liquid.
- Paste the code below into the Liquid code box. Change 447700900123 to your own number.
- In Dawn, set Padding Top and Bottom to 0. The section has no visible content, so this stops it from adding empty space above the footer. In Horizon, the padding is already 0.
- Click Save, then open your store on your phone and tap the button.

The code
{%- liquid
# Your number: country code + number, digits only (no +, spaces or leading 0)
assign wa_number = '447700900123'
assign wa_text = 'Hi! I have a question about ' | append: page_title | append: ': ' | append: canonical_url
-%}
<a class="wa-float" href="https://wa.me/{{ wa_number }}?text={{ wa_text | url_encode | replace: '+', '%20' }}" target="_blank" rel="noopener" aria-label="Chat with us on WhatsApp">
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>
</a>
<style>
.wa-float {
position: fixed;
right: 16px;
bottom: calc(16px + env(safe-area-inset-bottom, 0px));
z-index: var(--layer-heightened, 2);
display: flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
border-radius: 50%;
background: #25d366;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
transition: bottom 0.3s;
}
.wa-float svg {
width: 30px;
height: 30px;
fill: #fff;
}
/* Horizon: move up while the sticky add to cart bar is showing */
body:has(.sticky-add-to-cart__bar[data-stuck='true']) .wa-float {
bottom: calc(16px + var(--height-buy-buttons, 48px) + var(--padding-sm, 12px) * 2 + env(safe-area-inset-bottom, 0px));
}
@media print {
.wa-float { display: none; }
}
</style>The message uses two of Shopify’s global Liquid objects: page_title and canonical_url. On a product page, the message reads “Hi! I have a question about” plus the product’s page title and link. On a collection page, it names the collection. So you know what they were looking at before you reply.
What I tested
I rendered the code offline and loaded it into test pages built from Dawn’s and Horizon’s own CSS, at 360, 390 and 1280 px wide. Here is what it does:
- Clean messages. Product names with &, + or quote marks arrive exactly as written. Shopify’s url_encode filter turns spaces into + signs, so the code swaps them for %20.
- Safe on phones. The button stays 16 px from the corner while scrolling and adds no sideways scroll.
- No clash with sticky add to cart. Horizon’s Sticky add to cart bar runs along the bottom of the screen on phones. While it shows, the button moves up above it.
- Menus stay on top. In Dawn, the open mobile menu covers the button instead of the other way round.
The code also adds the phone’s safe-area space to the bottom gap. On themes that draw under the home bar of newer phones, like Horizon, this keeps the button above it.
Do you use the Dawn or Horizon theme with another sticky bar from an app? Test a product page on your phone. If the two overlap, raise the 16px in the bottom: line until they don’t.
Way 3: Add an “Ask on WhatsApp” button to product pages
Most pre-sale questions are about one product. A button right under Add to cart catches them at the moment shoppers decide, and the message names the product for you.
Steps
- Dawn: open the theme editor, choose Products, then Default product. In Product information, click Add block and choose Custom Liquid. Drag it under Buy buttons.
- Horizon: open the Default product template. In Product information, open Details, click Add block and choose Custom Liquid. Drag it under Buy buttons.
Paste this code into the Liquid code box, change the number and click Save:
{%- liquid
assign wa_number = '447700900123'
assign wa_text = 'Hi! I have a question about ' | append: product.title | append: ': ' | append: request.origin | append: product.url
-%}
<a class="wa-ask" href="https://wa.me/{{ wa_number }}?text={{ wa_text | url_encode | replace: '+', '%20' }}" target="_blank" rel="noopener">
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>
Ask on WhatsApp
</a>
<style>
.wa-ask {
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
min-height: 46px;
padding: 10px 16px;
border: 1px solid currentColor;
border-radius: 6px;
color: inherit;
font: inherit;
text-decoration: none;
}
.wa-ask svg {
flex: none;
width: 20px;
height: 20px;
fill: #25d366;
}
</style>This WhatsApp chat button fills the width of the product column and uses your theme’s text color, so it looks like a secondary button next to Add to cart. It sends the product title and the product link. It does not know which size or color the shopper picked, so ask them in your first reply.

A WhatsApp chat button answers questions, but it is even better when shoppers need it less. Clear trust badges and a good FAQ page answer the common ones before they ask.
Which way should you use?
For most stores, I use Way 2 and Way 3 together. The floating button covers every page, and the product button catches buying questions. Here is how the options compare:
| Way | Cost | Code | Names the product | Best for |
|---|---|---|---|---|
| Menu link | Free | None | No | A quick start |
| Floating button | Free | Copy and paste | Yes, page title and link | Every page |
| Product page button | Free | Copy and paste | Yes, title and link | Buying questions |
| Chat button app | Free or paid | None | Depends on the app | Opening hours, several agents |
An app makes sense when you want extras, such as showing the button only during opening hours or sending chats to several team members. Check what scripts it adds, though. Each one has a small cost in page speed, as I explain in my Shopify speed guide.
WhatsApp Business app vs the WhatsApp API
Your Shopify WhatsApp button only starts the chat. Who answers it depends on which WhatsApp product you use. There are two, and Shopify has a third option of its own.
The WhatsApp Business app is free to download from the phone app stores. WhatsApp describes it as an app for small businesses, with a business profile, greeting messages, away messages, quick replies and labels. You answer each chat yourself. For most small stores, this is all you need.
The WhatsApp Business Platform is
Meta’s API. WhatsApp apps for Shopify that send automatic messages use it. As of November 2026, Meta charges per delivered message, with rates that depend on the message type and the shopper’s country. Messages from shoppers to you are free. For 24 hours after a shopper writes, you can reply with normal messages. Messages you start must use approved templates.
Shopify Messaging is Shopify’s own app for email, SMS and WhatsApp marketing. It sends WhatsApp campaigns to subscribers who opt in. As of November 2026, Shopify’s help center lists these points:
- You connect a WhatsApp Business Account through Meta’s sign-up during set-up.
- WhatsApp marketing messages can’t be sent to customers in the United States.
- Prices per marketing message include $0.106 USD in the UK, $0.172 USD in France and $0.248 USD in Germany.
- You get 1,000 free service messages per WhatsApp Business Account each month.

Can Shopify send order confirmations on WhatsApp?
Not by itself. Shopify’s customer notifications, such as Order confirmation and Shipping confirmation, are sent by email and SMS. Shopify Messaging’s WhatsApp help pages cover marketing campaigns, not order updates.
So for automatic WhatsApp order messages, you need a third-party app built on the WhatsApp Business Platform. Meta lists order confirmations and shipment updates as a use case, sent as utility template messages. Before you install one, check its per-message fees and how shoppers opt in.
Is a WhatsApp button GDPR-friendly?
Yes, a plain wa.me link is about as privacy-friendly as a button gets. In my tests, the Shopify WhatsApp button set no cookies and sent no data to WhatsApp before a click. Nothing happens until the shopper taps it and chooses to write to you.
Once they do, you hold their phone number and messages in WhatsApp, which is a Meta service. So for shoppers in the EU and the UK, name WhatsApp in your privacy policy as a way you talk to customers. Chat widget apps are different, because some load scripts on every page. If they set cookies, they belong behind your Shopify cookie banner. This is general guidance, not legal advice.
Common problems and fixes
The chat opens, but with the wrong number or an error
The number is almost always the cause. Check that it starts with the country code and has no plus sign, leading 0, spaces or dashes. Also check that the number has an active WhatsApp account.
The message shows + signs instead of spaces
This happens when url_encode is used alone. Keep the replace: ‘+’, ‘%20’ part of the code, exactly as shown.
The button covers my add to cart bar or the Shopify Inbox chat
Shopify Inbox shows its own chat button in the bottom corner. If you use both, change right: 16px to left: 16px so each has its own corner. For an app’s sticky bar, raise the bottom value until they no longer touch.
The WhatsApp chat button doesn’t show at all
Check that you edited the live theme, or published the copy you edited. Then check that the Custom Liquid section sits in the Footer group and that you clicked Save.
On a computer, it opens a web page
That is normal. WhatsApp’s help article says click to chat works on both phones and WhatsApp Web. On a computer, shoppers continue the chat in WhatsApp Web.
Related guides
- Shopify sticky add to cart: the Horizon setting and free Dawn code.
- Shopify newsletter popup: two free ways with proper consent.
- Shopify age verification: popup, ID checks and delivery checks for restricted products.
Frequently asked questions
How do I add a WhatsApp button to my Shopify store?
Build a wa.me link with your number in international format. Then add it as a menu item under Content, then Menus, or paste the floating button code into a Custom Liquid section in your theme’s Footer group.
Does Shopify have WhatsApp integration?
Partly. Shopify Messaging can send WhatsApp marketing campaigns, but Dawn and Horizon have no built-in WhatsApp button. A wa.me link or a Custom Liquid snippet adds one for free.
Is a WhatsApp chat button free on Shopify?
Yes. A click to chat link costs nothing, and so does the WhatsApp Business app. You only pay when you use the WhatsApp API or Shopify Messaging to send messages.
Can Shopify send order confirmations on WhatsApp?
Not on its own. Shopify sends order notifications by email and SMS. For WhatsApp order updates, you need a third-party app built on the WhatsApp Business Platform.
How do I get a WhatsApp click to chat link?
Write https://wa.me/ followed by your full number with the country code, using digits only. Add ?text= and a URL-encoded message if you want the chat to start with a message already typed in.
Can I use my personal WhatsApp number?
The link works with any active WhatsApp number. For a store, the free WhatsApp Business app is the better choice, because it adds a business profile, away messages and quick replies.
A Shopify WhatsApp button is a small change that makes your store feel easy to reach. For more free help, see my free Shopify tools. If you would rather have the buttons set up and styled for you, I do this as part of my Shopify store redesign service. Message me on WhatsApp and I will take a look.




