[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.6.5 and WordPress 5.2.2
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

Comments

2 Comments

  1. Artiom August 7, 2019 at 7:15 am #

    Hi!

    Is it possible to translate the number of the sum into another language?

    Reply to thread

    Avatar
    • RokasJ August 7, 2019 at 12:35 pm #

      Hi,

      Unfortunately only English is supported right now but we have added it to our todo list.

      Best regards,
      Rokas – Support Team

      Avatar