Add a WhatsApp Button to Your WooCommerce Store
In an online store most WhatsApp questions come from product pages (“Is this in stock?”, “Does it come in blue?”). You can show the floating button on the whole shop, or only on single product pages so it does not distract on the cart and checkout. Both ways are below.
Loading the generator…
Step by step: add the button to WooCommerce
- Make the button: enter your WhatsApp number with the country code and a shopping message, for example “Hi, I have a question about a product in your store”, press Generate code and copy the snippet.
- Whole shop: paste the snippet into your site footer, as in the WordPress guide (a header & footer code plugin’s Footer box is the easiest). It then shows on the shop, product, cart and checkout pages.
- Product pages only: with a code snippets plugin (for example WPCode, type PHP Snippet) or your child theme’s functions.php, add
add_action( 'wp_footer', function () { if ( function_exists( 'is_product' ) && is_product() ) { ?>then the snippet, then<?php } } );and activate it. - In the generator, set Show on to mobile only if your desktop product page already has a contact block — most store chats start on phones.
- Open a product page in a private window and tap the button. If you use a page cache, clear it so the new footer appears.
See who clicks it
The free button does not count clicks. WhatsApp Chat Button with Click Tracking ($9/month) shows how many visitors open a chat — per page, per device and per day — on your WooCommerce site, with the same button, and its code has no credit link.
Questions
Can the message include the product name?
The free code uses one fixed message for every page. Write it so it fits any product (“a question about a product”), and customers add the name themselves.
Will it slow down my shop?
No. It is one small script in the footer, with no files from other servers.
Other platforms
WhatsApp button for WordPress · WhatsApp button for Shopify · WhatsApp button for Wix · WhatsApp button for Squarespace · WhatsApp button for Webflow · WhatsApp button HTML code · WhatsApp button for Elementor · WhatsApp button for Google Sites · WhatsApp button for GoDaddy · WhatsApp button for Framer · WhatsApp button for Joomla · WhatsApp button for Carrd · WhatsApp button for landing pages
Free WhatsApp Chat Button Generator · WhatsApp Chat Button with Click Tracking · How to Measure Your WhatsApp Button's Click Rate
Enterprise Solution Center
Choose the perfect solution for your business
AffiliatePro SaaS
Enterprise solution
WooCommerce Amazon
Enterprise solution
AffiliatePro Mobile
Enterprise solution