---
title: How to Show a Total Price by Quantity in WooCommerce
description: Show a live total price for the chosen quantity on WooCommerce product pages, ideal for products sold by weight or length.
url: "https://wpfactory.com/docs/woocommerce-total-price-by-quantity/"
updated: "2026-09-26"
category: How to
---

# How to Show a Total Price by Quantity in WooCommerce

## Show a total price that updates with quantity

Total Price by Quantity displays the running total for the chosen quantity and updates it live as the customer changes the amount. It is ideal for products sold by weight or length. You enable it in the [Min Max Step Quantity Limits Manager for WooCommerce](https://wpfactory.com/item/product-quantity-for-woocommerce/), and the core feature is free for simple products.

![Total Price by Quantity options in Quantity Manager](https://wpfactory.com/wp-content/uploads/quantity-manager-total-price-by-quantity.png)

### Steps

1. Go to **WPFactory > Quantity Manager** (also reachable at **WooCommerce > Settings > Product Quantity**).
2. Open the **Total Price by Quantity** section and tick **Total Price by Quantity** (`wpfmmsq_qty_price_by_qty_enabled`).
3. For variable products, also tick **Total Price by Quantity for variable product**.
4. Edit the **Template** (default `%price% for %qty% %unit%.`) and choose a **Position** (before, instead of, or after the price, or before/after add to cart).
5. Click **Save changes**.

### Template placeholders

| Placeholder | Shows |
| --- | --- |
| `%price%` | The calculated total for the current quantity. |
| `%qty%` | The selected quantity. |
| `%unit%` | The unit label (product, then category, then global). |

**Note:** if **Position** is set to *Instead of the price*, the separate **Price Unit** feature is overridden by this template.

### Options reference

| Label | Option ID | Default | Free/Pro |
| --- | --- | --- | --- |
| Total Price by Quantity (enable) | `wpfmmsq_qty_price_by_qty_enabled` | No | Free |
| Template | `wpfmmsq_qty_price_by_qty_template` | %price% for %qty% %unit%. | Free |
| Position | `wpfmmsq_qty_price_by_qty_position` | Instead of the price | Free |
| Unit on product / category level | `wpfmmsq_qty_price_by_qty_unit_input_enabled` | No | Pro |

### Get more control

The core feature is free. [Min Max Step Quantity Limits Manager for WooCommerce](https://wpfactory.com/item/product-quantity-for-woocommerce/) Pro adds per-product, per-category and per-attribute units, and price by quantity on shop and category pages. [See what Pro unlocks](https://wpfactory.com/item/product-quantity-for-woocommerce/).

Related articles

- [How to Show Quantity Columns in the Products List](https://wpfactory.com/docs/woocommerce-admin-quantity-columns/)
- [How to Show Quantity Messages in Multiple Languages](https://wpfactory.com/docs/multilingual-setup-guide/)
- [How to Show a Quantity Box on Shop and Category Pages](https://wpfactory.com/docs/woocommerce-quantity-on-archive-pages/)
- [How to Set a Minimum Order Quantity in WooCommerce](https://wpfactory.com/docs/woocommerce-minimum-order-quantity/)
- [How to Set a Maximum Order Quantity in WooCommerce](https://wpfactory.com/docs/woocommerce-maximum-order-quantity/)
