Updates the displayed WooCommerce product price when quantity changes. Optional separate line Total with configurable single product page hook position.
Features
- Instant price recalculation on quantity changes
- Works with simple and variable products (listens to
found_variation) - Compatible with WooCommerce Blocks price markup (keeps currency symbol span)
- Optional separate line Total with customizable label
- Choose where to output the Total line from common single product hooks
- Accessible updates via ARIA live region
Settings
WP Admin → WooCommerce → Quantity Price Updater
- Update main product price dynamically: When enabled, replaces the product price on the page as quantity changes.
- Enable separate Total line: Outputs a dedicated total amount element on single product pages.
- Hook position: Choose where the Total is output.
- Total label: Text shown before the recalculated total.
Frontend Behavior
- Quantity changes trigger real-time recalculation.
- Variation selection updates the unit price before recalculation.
- If “separate Total line” is enabled, a paragraph with id
qpu-totalis rendered at the selected hook and updated live. - If “Update main product price dynamically” is enabled, the existing price on the page is updated in-place. With WooCommerce Blocks, only the amount is replaced while preserving the currency symbol markup.
Theme/Block Compatibility
The script tries several selectors including classic templates and Woo Blocks:
.summary .price .amount,.summary .price bdi.wp-block-woocommerce-product-price …,.wc-block-components-product-price …
If your theme uses different price wrappers, modify the selectors in the jQuery to match.


Reviews
There are no reviews yet.