fbpx

Description

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

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

Args


hide_currency
(optional) Hide currency symbol (yes).
Default: no

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


Examples

[wcj_product_you_save before="You save: " hide_if_zero="yes"]
Accessible through:
  • [wcj_product_you_save]
Tested on WooCommerce 8.5.1 and WordPress 6.4.2