[wcj_cart_items_total_weight]

Display total weight of all items in the cart

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 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 3.1.1 and WordPress 4.8.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.