fbpx

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