[wcj_order_tax_by_class]

Display WooCommerce order tax by class

Description

[wcj_order_tax_by_class] shortcode displays WooCommerce order tax by class.

Args

tax_class
(required) Tax class slug, e.g. reduced-rate or standard.

Default: None
hide_if_zero
(optional) Hide output if result equals zero (yes).

Default: no
hide_currency
(optional) Hide currency symbol (yes).

Default: no
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
billing_country
(optional) Make shortcode results visible only in orders with specific billing country. Value is two letter country code. Can be comma separated list.

Default: None
not_billing_country
(optional) Make shortcode results visible only in orders excluding specific billing country. Value is two letter country code. Can be comma separated list.

Default: None

Examples

[wcj_order_tax_by_class tax_class="reduced-rate"]
Accessible through:
  • [wcj_order_tax_by_class]
Tested on WooCommerce 3.3.5 and WordPress 4.9.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

Comments

1 Comment

  1. Dani March 3, 2018 at 5:11 pm #

    Hello
    I need to extrapolate from the woocommerce through the shortcodes of the booster two very important values:

    the shortcodes that gives the total value of: [wcj_order_tax_by_class tax_class="standard"] + [wcj_order_shipping_tax]
    if it does not exist how can I sum the two shortcodes?

    and

    the shortcodes that gives the total value of: [wcj_order_subtotal_by_tax_class tax_class="standard] + [wcj_order_shipping_price excl_tax = "yes"]
    if it does not exist how can I sum the two shortcodes?

    thank you

    Reply to thread