[wcj_wholesale_price_table]

Display WooCommerce wholesale price table

Description

[wcj_wholesale_price_table] shortcode displays WooCommerce wholesale price table. Shortcode has no required attributes, optional attributes are listed below.

Use [wcj_product_wholesale_price_table] shortcode, if you need to display table for a specific product.

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: +
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
before
(optional) Text to place before the content. If content is empty this argument is ignored.

Default: None
after
(optional) Text to place after the content. If content is empty this argument is ignored.

Default: None
visibility
(optional) User visibility. Possible values are WordPress user roles (including custom), e.g. administrator, shop_manager, customer etc.

Default: all
location
(optional) Make shortcode results visible only to customers from specific country (by user IP). Value is two letter country code.

Default: all
site_visibility
(optional) Restrict shortcode output to some pages only. Possible values: single, page, archive.

Default: None
wpml_language
(optional) Restrict shortcode output to certain WPML language only. Possible values are two letter language codes. Can be comma separated list.

Default: None
not_wpml_language
(optional) Restrict shortcode output to exclude certain WPML languages. Possible values are two letter language codes. Can be comma separated list.

Default: None

Examples

[wcj_wholesale_price_table]
from 2 pcs. from 5 pcs. from 10 pcs.
-5% -7% -10%
Accessible through:
  • [wcj_wholesale_price_table]
Tested on WooCommerce 3.1.1 and WordPress 4.8.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

1 Comment

  1. Francisco Correia July 19, 2017 at 7:59 am #

    Hi,
    Is there an argument to link the table to a product?
    I added the shortcode via the functions.php to show after the product’s short description but it is showing me the default shop-wide discount instead of the one specific for this product.
    Please help.
    Thank you

    Reply