[wcj_product_you_save_percent]

Display saved amount in percents for onsale WooCommerce product

Description

[wcj_product_you_save_percent] shortcode displays WooCommerce product price percent discount (if any).

This will display the percent value, if you wish to display the absolute value, use [wcj_product_you_save] shortcode.

Args

reverse
(optional) Reverse the result (yes).

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

Default: no

Examples

[wcj_product_you_save_percent before="You save: " after="%"]
Accessible through:
  • [wcj_product_you_save_percent]
Tested on WooCommerce 3.2.5 and WordPress 4.9
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.