fbpx

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 9.3.2 and WordPress 6.6.2