[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.6.4 and WordPress 5.2.1
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

6 Comments

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

    how to make the wholesale only for specific user role?

    Reply to thread

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

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

    Reply to thread

    Avatar
  3. shima February 26, 2019 at 8:26 am #

    how to create or change border for table?

    Reply to thread

    Avatar
    • RokasJ February 26, 2019 at 2:52 pm #

      Hi Shima,

      This table should follow your theme’s style. To stylize it you could write some custom CSS code (in the “Custom CSS” module) for the class “wcj_product_wholesale_price_table”.

      Best regards,
      Rokas – Support Team

      Avatar
  4. shima March 16, 2019 at 7:16 am #

    tnx RokasJ
    how to delete price in product that use this table?
    and How to add a row to this table and write it in the header “call to me”?

    Reply to thread

    Avatar
    • RokasJ March 17, 2019 at 10:36 pm #

      Hi Shima,

      Unfortunately these customizations are not possible yet but we have added them to our todo list.

      Best regards,
      Rokas – Support Team

      Avatar