[wcj_order_total_in_words]

Display WooCommerce order total in words (number spelling)

Description

[wcj_order_total_in_words] shortcode displays WooCommerce order total in words. Order total can be calculated with or without TAX.

Args

order_id
(optional) The integer ID for an order.

Default: The current order ID, if exists
excl_tax
(optional) Including (no) or excluding (yes) the taxes.

Default: no
lang
(optional) Currently only English (eng) number spelling is available.

Default: eng
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
whole
(optional) Whole part name.

Default: Dollars
decimal
(optional) Decimal part name.

Default: Cents

Usage Example

Shortcode is intended (but not limited) to use with PDF Invoicing and Packing Slips module.

Order Total: [wcj_order_total_in_words]
Accessible through:
  • [wcj_order_total_in_words]
Tested on WooCommerce 3.0.7 and WordPress 4.7.5
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.