Description
Rats Price Inquiry for WooCommerce is a free WooCommerce plugin that hides product prices and replaces the add-to-cart button with a smart WhatsApp inquiry button. Perfect for B2B stores, quote-based shops, or any business that wants customers to ask before buying.
Key Features
Smart WhatsApp Routing
Set a different WhatsApp number for each product category. Enable round-robin rotation between two numbers to balance inquiry load between staff members automatically.
Auto-Populated Chat Messages
When a customer clicks your button, WhatsApp opens with a pre-filled message including the product name, URL, and SKU. Fully customisable with placeholders, overridable per product.
Guest-Only Mode
Hide prices only for logged-out visitors. Registered members see normal prices — great for building a mailing list with a “Member Price” experience.
Custom Button Labels
Change the button text globally, per category, or per individual product: “Check Stock,” “Request Quote,” “Bulk Order Inquiry,” and so on.
Mini Analytics Dashboard
Click counts per product, ranked by popularity. Export as CSV or reset at any time.
Flexible Price-Hiding Rules
Hide prices for an entire category or override at product level. Product overrides always win.
REST API
GET /wp-json/swph/v1/product/{id} for headless / block-based themes.
Tools Page
CSV export, analytics reset, and environment health check.
Screenshots

Settings page with global options and live message preview. 
Category rules table with hide-price, dual WhatsApp numbers, and custom labels. 
Analytics dashboard with stat cards and per-product click table. 
Tools page — CSV export, reset, environment info. 
Per-product meta box in the WooCommerce General tab. 
Front-end single product page with WhatsApp button. 
Front-end shop loop with animated WhatsApp button on product cards.
Installation
- Upload the
rats-price-inquiry-for-woocommercefolder to/wp-content/plugins/. - Activate the plugin in Plugins > Installed Plugins.
- Ensure WooCommerce is installed and active.
- Go to Price Inquiry > Settings to configure.
FAQ
-
Does this work with block-based themes?
-
The plugin hooks into standard WooCommerce PHP template actions. Classic and Storefront-based themes work out of the box. For full-site-editing themes, use the REST API endpoint to build a custom block or add minor CSS targeting.
-
How does round-robin rotation work?
-
A WordPress transient counter per category alternates between the primary and rotate number. The counter resets daily.
-
Is it GDPR compliant?
-
Only a SHA-256 hash of the visitor IP is stored for analytics — no plain-text personal data. Update your privacy policy accordingly.
-
What is removed when I delete the plugin?
-
The uninstall.php routine removes all plugin options, per-product post meta, the analytics DB table, and rotation transients.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Rats Price Inquiry for WooCommerce” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Rats Price Inquiry for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.
- Smart per-category WhatsApp routing with round-robin rotation.
- Auto-populated WhatsApp messages with product name, URL, and SKU placeholders.
- Guest-only price-hiding mode.
- Custom button labels (global / category / product level).
- Mini analytics dashboard with click counts per product.
- CSV export and analytics reset in Tools page.
- REST API endpoint for headless / block-theme support.
- Per-product meta box for hide price, number, label, and message overrides.
- Live message preview, copy-placeholder chips, and category search in admin.
- WooCommerce HPOS compatibility declaration.
- Full uninstall cleanup via uninstall.php.
