[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
- Default:
- lang
- (optional) Currently only English (
eng
) number spelling is available.- Default:
eng
- Default:
- 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
- Default:
- decimal
- (optional) Decimal part name.
- Default:
Cents
- Default:
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]
Hi!
Is it possible to translate the number of the sum into another language?
Hi,
Unfortunately only English is supported right now but we have added it to our todo list.
Best regards,
Rokas – Support Team