[wcj_order_items_total_number]

Display WooCommerce order items total number (line count)

Description

[wcj_order_items_total_number] shortcode displays WooCommerce order items total number (line count).

Args

order_id
(optional) The integer ID for an order.

Default: The current order ID, if exists
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

Example

Total items: [wcj_order_items_total_number]
Recommended for PDF Invoicing and Packing Slips module
Accessible through:
  • [wcj_order_items_total_number]
Tested on WooCommerce 3.2.3 and WordPress 4.8.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.