Black Friday All Access $999 $399 lifetime or 30% off any plugin with Ends in -- See deals
View Categories

Shortcodes for the Price by Quantity Plugin

Price by Quantity shortcodes #

The Price by Quantity & Bulk Quantity Discounts 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

[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

[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.

wpf dynamic pricing bulk quantity discounts for woocommerce Icon

Price by Quantity

Get more from Price by Quantity

See every feature and the pricing on the Price by Quantity plugin page.

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.