[wcj_product_wholesale_price_table]

Display wholesale pricing table for a product in WooCommerce

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 3.1.2 and WordPress 4.8.2
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

Comments

2 Comments

  1. ibnu April 28, 2017 at 10:29 am #

    how to make the wholesale only for specific user role?

    Reply

  2. benard loic June 5, 2017 at 5:07 pm #

    Hello
    I would like to delete the word “from”.
    Thank you

    Reply