fbpx

Description

[wcj_product_total_sales] shortcode displays WooCommerce product total sales number. For example you can use it in Booster’s Product Info module.

Args


hide_if_zero
(optional) Hide output if result equals zero (yes).
Default: no

offset
(optional) Starting sales number.
Default: `0`

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

Example

[wcj_product_total_sales before="Total Sales: " hide_if_zero="yes"]
Accessible through:
  • [wcj_product_total_sales]
Tested on WooCommerce 5.2.2 and WordPress 5.7.2