[wcj_product_total_sales]

Display WooCommerce product total sales number

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 3.2.3 and WordPress 4.8.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.

Leave a Reply

No comments yet.