Skip to content

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

Enterprise Solution Center

Choose the perfect solution for your business

Most Popular
📦

AffiliatePro SaaS

Enterprise solution

$49
📦

WooCommerce Amazon

Enterprise solution

$49
📦

AffiliatePro Mobile

Enterprise solution

$79
🤝 Recommended Partner

Optimized Infrastructure for Your Enterprise Solution