Skip to content
Marketing & Social Proof Extensions

WhatsApp Integration for Magento 2

Adds a floating WhatsApp chat button to Magento 2 pages, an Ask on WhatsApp button on product pages and a help banner on category pages. Each one opens a wa.me chat with your number and a pre-filled message set in the admin.

  • Free
  • Themes listed: Hyvä + Luma
Free $0.00, in stock
Check requirementsSee the versions and themes listed for this package. Details Ask about setupInclude the package name and your Magento and PHP versions. Ask
$0.00
In stock
SKU
panth-whatsapp
Links
composer require mage2kishan/module-whatsapp
SKU
panth-whatsapp
  • Package requirementsRead the source documentation
  • Developer profileView Upwork profile
  • Themes listedHyvä + Luma
  • PHP versions listed8.1, 8.2, 8.3, 8.4
  • Installation questionsDiscuss your store setup

What it does for your store

The main features, as listed in the module documentation.

  • Floating chat button

    Shown on every page except checkout, in any corner, with hover text. It steps aside for drawers, dialogs and filter controls.

  • Product page button

    Pre-fills the product name and URL. Four styles: solid, outline, text only and icon only.

  • Category page banner

    Shown below the product list, with the category name added to the message.

  • Per store view

    Phone number, messages and switches can differ per website and store view. All three elements stay off until you enable them.

  • Theme colours

    Colours and sizes are CSS variables from theme-config.json, so a theme can restyle the buttons without template edits.

  • Plain wa.me links

    No WhatsApp Business API, no database tables, no cron jobs and no third party scripts.

Installation

Example commands from the Magento root. Follow the package instructions and your staging and deployment process.

  1. 1Check the releaseMatch Magento, PHP, theme and dependency requirements.
  2. 2Install on stagingReview Composer changes and follow the package instructions.
  3. 3Configure and verifyUse the documented settings and test the affected features.
magento-root
$ composer require mage2kishan/module-whatsapp
$ bin/magento setup:upgrade
$ bin/magento setup:di:compile
$ bin/magento setup:static-content:deploy -f
$ bin/magento cache:clean

Listed requirements

These are the details supplied in this listing. Confirm the selected release supports your Magento edition, PHP and storefront.

Magento versions listed2.4.6, 2.4.7, 2.4.8
PHP versions listed8.1, 8.2, 8.3, 8.4
Themes listedHyvä, Luma
Composer packagemage2kishan/module-whatsapp

Read package requirements and license

Documentation

Product details and setup guidance. Check the package repository for release-specific instructions.

WhatsApp contact points for a Magento 2 store

WhatsApp Integration adds three places where shoppers can start a WhatsApp chat: a floating button on the storefront, a button on product pages and a banner on category pages. Each one opens a https://wa.me/ link to the phone number you set, with a pre-filled message. Nothing is sent from your server; the shopper's own WhatsApp app or WhatsApp Web handles the chat.

Floating button

The floating button shows on every page except checkout, in the bottom right, bottom left, top right or top left corner. Its hover text also shows on keyboard focus. It hides while a drawer, dialog, open search or mobile menu is shown and fades while it would cover the filter controls, sorter or pager.

Product page button

The Ask on WhatsApp button has its own text and message template, where {product_name} and {product_url} are replaced for the product being viewed. Choose solid, outline, text only or icon only. On Luma it sits below the product information, above the tabs. On Hyvä it moves to the end of the product information card, below the buy box. It shows for every product type.

Category page banner

The banner appears below the product list and pagination, with its own button text and message. The current category name is added to the message.

Settings

Stores > Configuration > Panth Extensions > WhatsApp Integration has a switch for each element, the phone number, the default message, hover text, position, product and category texts and templates, the button style and extra CSS classes. Every field can be set at default, website and store view scope. All three elements are off after installation, and nothing shows until a phone number is set. The product button and the category banner also need the floating button switched on.

Colours and sizes, such as the button background, icon size and side and bottom offsets, come from etc/theme-config.json. Panth Core prints them as CSS variables, so your theme can override them in CSS.

Themes

One set of templates works on Hyvä and Luma without a compatibility module. The templates can be overridden under Panth_WhatsApp/templates/ in your theme.

Requirements

  • Magento Open Source or Adobe Commerce 2.4.4 to 2.4.8.
  • PHP 8.1, 8.2, 8.3 or 8.4.
  • mage2kishan/module-core, installed by Composer.
  • A phone number registered with WhatsApp. A WhatsApp Business account is not required.

Free and open source under the MIT License.

Developer notes

  • Module Panth_WhatsApp, PHP namespace Panth\WhatsApp.
  • View models Panth\WhatsApp\ViewModel\FloatButton, Panth\WhatsApp\ViewModel\Product and Panth\WhatsApp\ViewModel\Category each expose getWhatsAppUrl().
  • Config helper: Panth\WhatsApp\Helper\Data.
  • ACL resource for the configuration section: Panth_WhatsApp::config.
More information
Module Category Forms & Communication
Best For All Sizes

Changelog

  1. 1.0.20, 2026-10-30

    • Released under the MIT License: this module is free and open-source software.
  2. 1.0.19, 2026-10-06

    • Product page: the "Ask on WhatsApp" button no longer sits in the buy box next to Add to Cart. On Luma it is shown below the product information and gallery, directly above the product tabs; on Hyvä it is shown at the end of the product information card, below the buy box. The Solid, Outline and Text styles now render as a secondary button with its label (white, 1px #D4D4D4 border, 8px radius, 15px/600 text, 44px tall, 48px and full width below 768px) with the WhatsApp green kept only in the icon. The Icon Only style is a 44px round white button (48px below 768px). Button text, message template and settings are unchanged.
Full history on GitHub

FAQ

Do I need a WhatsApp Business account?

No. Any phone number registered with WhatsApp works. The module only builds wa.me links, so a WhatsApp Business account is optional.

Does this use the WhatsApp Business API?

No. Each button opens a public wa.me click to chat link with your number and a pre-filled message. The module makes no calls to the WhatsApp Business API and sends no messages itself.

Can I use different numbers for different stores?

Yes. The phone number, messages, button texts and switches can be set at default, website and store view scope. Colours and sizes are not admin settings; they come from CSS variables that a theme can override.

Does it work with Hyvä?

Yes. The same templates work on Hyvä and Luma without a compatibility module. On Hyvä a layout handle moves the product page button to the end of the product information card, below the buy box.

Will it slow down my store?

Each element is a link rendered by the server. The floating button adds a small inline script and styles of its own, and nothing is loaded from third parties. Measure your own pages before and after.

Can I track clicks in Google Analytics?

Not by itself. The module sends no analytics events. You can track clicks on wa.me links with your own Google Tag Manager setup.

Does it support multi-language stores?

Yes. Admin labels and storefront texts go through Magento's translation function, and the messages and button texts can be set per store view.

Can I hide the button on specific pages?

Yes. Remove the whatsapp.float block in your theme's layout XML for the handles where you do not want it. The button is already hidden on checkout.

Kishan Savaliya

Questions before you install?

Send me your composer.json and I will check for conflicts first. Free. Installation is +$45, custom work is quoted first.

Ask on WhatsApp