Display the result of any cart class function in WooCommerce


[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.


(required) Function name to call.

Default: None


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

Leave a Reply

No comments yet.