dynamic product pricing – Plus/Minus with AJAX Add to Cart & Buy Now
A lightweight WooCommerce widget with **plus/minus quantity controls**, dynamic total price, and **AJAX Add to Cart** & **AJAX Buy Now** (direct to checkout). No forced external links.
by Hasan Alam Qazi · github.com/qaziwebsitewala/woocommerce-dynamic-product-pricing · 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-dynamic-product-pricing/archive/refs/heads/main.zipA WooCommerce widget with plus/minus quantity buttons, dynamic total price, and AJAX Add to Cart/Buy Now.
Description
A lightweight WooCommerce widget that:
- Shows plus/minus quantity controls
- Updates total price live on screen
- Supports AJAX Add to Cart
- Supports AJAX Buy Now (direct to checkout)
- Doesn’t inject forced external links
Use the shortcode on a product page or pass a product ID:
[dynamic_product_pricing][dynamic_product_pricing product_id="123"]
Installation
- Upload the
dynamic-product-pricingfolder to/wp-content/plugins/ - Activate the plugin via Plugins → Installed Plugins
- Add the shortcode to a page or single product content.
Frequently Asked Questions
Does it work with variable products?
This version targets simple products. Extending to variations would require reading selected variation IDs and prices.
Can I style the buttons?
Yes. Override or extend styles in assets/css/dpp-style.css.
Changelog
1.0.0
- Initial release.
Upgrade Notice
- 1.0.0 – First release.