---
title: Shortcodes for the Price by Quantity Plugin
description: Shortcodes that show WooCommerce quantity pricing tables and pricing data anywhere on your site.
url: "https://wpfactory.com/docs/shortcodes-for-price-by-quantity-plugin/"
updated: "2026-09-25"
category: Shortcodes
---

# Shortcodes for the Price by Quantity Plugin

## Price by Quantity shortcodes

The [Price by Quantity & Bulk Quantity Discounts for WooCommerce](https://wpfactory.com/item/product-price-by-quantity-for-woocommerce/) plugin ships shortcodes for showing pricing tables and pricing data anywhere on your site. Each shortcode has a long-form name and a shorter `ppq` alias that does the same thing. This reference covers the free table and data shortcodes.

### `[alg_wc_wholesale_pricing_table]`

Displays the *global* (store-wide "All Products") pricing table. Alias: `[alg_wc_ppq_table]`.

| Attribute | Description | Default |
| --- | --- | --- |
| `heading_format` | Format for the heading cells. Placeholders: `%level_min_qty%`, `%level_max_qty%`. | `from %level_min_qty% pcs.` |
| `before_level_max_qty` | Prefix used before `%level_max_qty%`. | `-` |
| `last_level_max_qty` | Value shown for the last level's max quantity. | `+` |
| `hide_if_zero_quantity` | Hide a row when its level quantity is 0. | `no` |
| `table_format` | `horizontal` or `vertical`. | `horizontal` |
| `qty_thousand_sep` | Thousands separator for quantities. | *empty* |
| `before` / `after` | Optional HTML output before/after the table. | *empty* |

**Example:** `[alg_wc_wholesale_pricing_table heading_format="%level_min_qty%%level_max_qty% pcs."]`

![Global wholesale pricing table example](https://wpfactory.com/wp-content/uploads/Wholesale-Pricing-for-WooCommerce-Shortcodes-Global-Wholesale-Pricing-Table-Example.png)

### `[alg_wc_product_wholesale_pricing_table]`

Displays a single *product's* pricing table. Alias: `[alg_wc_product_ppq_table]`. Common attributes:

| Attribute | Description | Default |
| --- | --- | --- |
| `product_id` | Product ID. Uses the current product when omitted. | `0` |
| `heading_format` | Format for heading cells (same placeholders as above). | `from %level_min_qty% pcs.` |
| `table_format` | `horizontal` or `vertical`. | `horizontal` |
| `hide_currency` | Hide the currency symbol. | `no` |
| `add_price_row` | Add a price row. | `yes` |
| `price_row_format` | Format for the price row. | `<del>%old_price_single%</del> %new_price_single%` |
| `add_percent_row` | Add a percentage-saved row. | `no` |
| `add_discount_row` | Add an amount-saved row. | `no` |
| `columns_styles` | Inline style for each cell. | `text-align: center;` |

**Note:** the product table shortcode supports many more attributes (for example `add_total_min_qty_price_row`, `add_percent_row_rounded`, `hide_if_insufficient_quantity`, `hide_table_for_user_roles`, `hide_table_if_out_of_stock`). See the Pro shortcodes reference for the full list.

**Example:** `[alg_wc_product_wholesale_pricing_table add_percent_row="yes"]`

![Product wholesale pricing table example](https://wpfactory.com/wp-content/uploads/Wholesale-Pricing-for-WooCommerce-Shortcodes-Product-Wholesale-Pricing-Table-Example.png)

### `[alg_wc_wholesale_pricing_data]`

Outputs a single value from the *global* levels. Alias: `[alg_wc_ppq_data]`.

- `field`: `discount` or `quantity`. Default `discount`.
- `level_num`: `last` or a specific level number. Default `last`.
- `before` / `after`: optional wrapping text.

**Example:** `Best deal: [alg_wc_wholesale_pricing_data level_num="last" field="discount"]% off for [alg_wc_wholesale_pricing_data level_num="last" field="quantity"]+ pieces`

### `[alg_wc_product_wholesale_pricing_data]`

Outputs a single value from a *product's* levels. Alias: `[alg_wc_product_ppq_data]`.

- `field`: `price`, `discount` or `quantity`. Default `price`.
- `price_format`: used when `field="price"`. Default `<del>%old_price_single%</del> %new_price_single%`.
- `hide_currency`: hide the currency symbol. Default `no`.
- `level_num`: `last` or a specific level number. Default `last`.
- `product_id`: product ID. Uses the current product when omitted.

**Example:** `Lowest price: [alg_wc_product_wholesale_pricing_data field="price" price_format="%new_price_single%" level_num="last"] for [alg_wc_product_wholesale_pricing_data field="quantity" level_num="last"] pcs.`

### Related

For the Pro products-list shortcode, the language shortcode, and the full attribute and placeholder lists, see the Pro shortcodes reference and the placeholders reference.

### Need a hand?

Our team answers every ticket on the [Price by Quantity support forum](https://wpfactory.com/support/item/product-price-by-quantity-for-woocommerce/).

Related articles

- [Show Real-Time Price by Quantity on the Product Page](https://wpfactory.com/docs/woocommerce-price-display-by-quantity/)
- [Price by Quantity Placeholders Reference](https://wpfactory.com/docs/price-by-quantity-placeholders-reference/)
- [Price by Quantity Developer Hooks and Filters Reference](https://wpfactory.com/docs/price-by-quantity-developer-hooks-filters/)
- [Fix Price-by-Quantity Decimal and Separator Issues](https://wpfactory.com/docs/fix-price-by-quantity-separators/)
- [How to Translate Price by Quantity Table and Plugin Strings](https://wpfactory.com/docs/translate-price-by-quantity/)
