fbpx

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 4.5.2 and WordPress 5.5.1
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.