fbpx

Description

[wcj_cart_items_total_weight] shortcode displays total weight of all items in the cart.

Args

before
(optional) Text to place before the content. If content is empty this argument is ignored.
Default: None

after
(optional) Text to place after the content. If content is empty this argument is ignored.
Default: None

visibility
(optional) User visibility. Possible values are WordPress user roles (including custom), e.g. administrator, shop_manager, customer, guest etc.
Default: all

location
(optional) Make shortcode results visible only to customers from specific country (by user IP). Value is two letter country code.
Default: all

Example

[wcj_cart_items_total_weight before="Total products weight:"]
Accessible through:
  • [wcj_cart_items_total_weight]
Tested on WooCommerce 5.2.2 and WordPress 5.7.2