Dynamic Product Pricing Using Plus & Minus button
A custom WooCommerce extension that adds **plus and minus quantity buttons** directly on product pages, allowing customers to easily increase or decrease quantities before adding products to the cart. This feature is especially useful for bulk purchases, making the shopping experience faster and more convenient.
by Hasan Alam Qazi · github.com/qaziwebsitewala/woocommerce-quantity-selector · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/qaziwebsitewala/woocommerce-quantity-selector/archive/refs/heads/main.zipWooCommerce Bulk Quantity Plus/Minus Plugin
A custom WooCommerce extension that adds plus and minus quantity buttons directly on product pages, allowing customers to easily increase or decrease quantities before adding products to the cart. This feature is especially useful for bulk purchases, making the shopping experience faster and more convenient.
✨ Features
-
User-Friendly Quantity Controls
Adds "+" and "−" buttons to quantity input fields on WooCommerce product pages. -
Bulk Purchase Made Easy
Buyers can easily adjust quantities in larger numbers without typing manually. -
Seamless Integration
Works with all standard WooCommerce themes and product pages. -
Dynamic Calculations
Quantity changes are calculated instantly on screen using plus and minus controls, ensuring customers see updates in real time. -
Mobile Friendly
Optimized for mobile and tablet users for smooth purchasing on any device.
🔧 Installation
- Download the plugin ZIP file or clone the repository.
- Upload the plugin to your WordPress site via Plugins → Add New → Upload Plugin.
- Activate the plugin from the Plugins menu in WordPress.
- Quantity buttons will now appear on your WooCommerce product pages.
🛠 How It Works
This plugin modifies WooCommerce quantity input fields to include plus and minus buttons.
When a customer clicks "+", the quantity increases, and when they click "−", the quantity decreases — all without reloading the page.
This method is perfect for:
- Wholesale stores
- B2B e-commerce
- Products sold in packs or bulk
📌 Requirements
- WordPress 5.0+
- WooCommerce 5.0+
- PHP 7.4 or higher
📂 Development
The plugin is built using:
- PHP for WooCommerce integration
- jQuery for instant quantity adjustments
- WooCommerce hooks for seamless compatibility
👨💻 Author
Hasan Alam Qazi
- GitHub: https://github.com/qaziwebsitewala
- Website: https://qaziwebsitewala.com/
- LinkedIn: https://www.linkedin.com/in/hasan-qazi/
📜 License
This plugin is licensed under the GPL-2.0+ License.
You may modify and redistribute it under the same license terms.
💡 Contributions
Pull requests are welcome! If you’d like to improve or extend the plugin, feel free to fork the repo and submit changes.
⭐ Support & Feedback
If you find this plugin useful, please give it a star ⭐ on GitHub and share your feedback.