fbpx

Description

[wcj_product_wholesale_price_table] shortcode displays product’s wholesale pricing table. Wholesale prices are set in Wholesale Price module settings.

Use [wcj_wholesale_price_table] shortcode, if you need to display global wholesale pricing table.

Args


heading_format
(optional) Table heading format string. Replaced values: `%level_min_qty%`, `%level_max_qty%`.
Default: `from %level_min_qty% pcs.`

before_level_max_qty
(optional) Used in heading, before max level quantity.
Default: `-`

last_level_max_qty
(optional) Used in heading, after last level quantity.
Default: `+`

add_price_row
(optional) If set to `yes`, will add price row to the table.
Default: `yes`

price_row_format
(optional) If price row is added to the table, set format here.
Default: `<del>%old_price%</del> %price%`

add_percent_row
(optional) If set to `yes`, will add discounts percent row to the table.
Default: `no`

add_discount_row
(optional) If set to `yes`, will add discount row to the table.
Default: `no`

table_format
(optional) Can be `vertical` or `horizontal`.
Default: `horizontal`

hide_if_zero_quantity
(optional) If set to `yes`, will hide data for zero quantity.
Default: `no`

hide_currency
(optional) Hide currency symbol (yes).
Default: no

product_id
(optional) The integer ID for a product.
Default: The current product ID, if exists

Examples

Example 1

[wcj_product_wholesale_price_table heading_format="FROM %level_min_qty% PCS."]
FROM 2 PCS. FROM 5 PCS. FROM 10 PCS.
$ 100.00 $ 95.00 $ 100.00 $ 93.00 $ 100.00 $ 90.00

Example 2

[wcj_product_wholesale_price_table heading_format="%level_min_qty%%level_max_qty%" table_format="vertical" price_row_format="%price%"]
2-4 $ 95.00
5-9 $ 93.00
10+ $ 90.00

Example 3

[wcj_product_wholesale_price_table heading_format="%level_min_qty%%level_max_qty%" add_price_row="no" add_percent_row="yes"]
2-4 5-9 10+
-5% -7% -10%

Example 4

[wcj_product_wholesale_price_table]
from 2 pcs. from 5 pcs. from 10 pcs.
$ 100.00 $ 95.00 $ 100.00 $ 93.00 $ 100.00 $ 90.00
Recommended for Wholesale Price module and WooCommerce Product Info module
Accessible through:
  • [wcj_product_wholesale_price_table]
Tested on WooCommerce 9.4.1 and WordPress 6.7