WP SITES

3086 Coded Tutorials & 289 Plugins

Dynamic Quantity Price Updater for WooCommerce

$49.00

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-total is 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.

Be the first to review “Dynamic Quantity Price Updater for WooCommerce”

Contact Us If You Have Any Questions

Go back

Your message has been sent

Warning
Warning
Warning
Warning.