[wcj_cart_function]

Display the result of any cart class function in WooCommerce

Description

[wcj_cart_function] shortcode calls any WooCommerce cart WC_Cart class function and displays its results. For a full list of possible functions please check WC_Cart class documenation.

Args

function_name
(required) Function name to call.

Default: None

Examples

[wcj_cart_function function_name="get_cart_contents_count" before="Cart contents count: "]
Accessible through:
  • [wcj_cart_function]
Tested on WooCommerce 3.5.4 and WordPress 5.0.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.