[wcj_order_total_tax_percent]

Display WooCommerce order total tax percent

Description

[wcj_order_total_tax] shortcode displays WooCommerce order total tax percent.

Args

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

Usage Example

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

<table class="pdf_invoice_totals_table">
					<tbody>
						<tr><th>Shipping</th><td>[wcj_order_shipping_price]</td></tr>
						<tr><th>Subtotal</th><td>[wcj_order_subtotal]</td></tr>
						[wcj_order_total_discount hide_if_zero="yes" before="<tr><th>Discount</th><td>" after="</td></tr>"]
						<tr><th>Taxes (%)</th><td>[wcj_order_total_tax_percent]</td></tr>
						<tr><th>Taxes</th><td>[wcj_order_total_tax]</td></tr>
						<tr><th>Order Total</th><td>[wcj_order_total]</td></tr>
					</tbody>
					</table>
Accessible through:
  • [wcj_order_total_tax_percent]
Tested on WooCommerce 3.0.4 and WordPress 4.7.4
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

10 Comments

  1. Thea November 20, 2015 at 2:22 pm #

    Is it possible to have the amount limited to zero, 1 or 2 decimals?

    Reply

    • Valentin Solovjov February 3, 2016 at 4:25 pm #

      Hi,

      sorry for delay. We will see what we can do about it and get back to you ASAP.

      BR,
      Val

    • Valentin Solovjov February 8, 2016 at 6:32 pm #

      Hi,

      We done some modifications. You can test/use in dev version. You can download at http://booster.io/dev/ (need manually reinstall Booster for WooCommerce plugin). [wcj_order_total_tax_percent] shortcode fixed, precision attribute added.

      Example : [wcj_order_total_tax_percent precision="3"]

      Now I`m closing this post. Let us know if you still questions, email us to support@booster.io

      BR,
      Val

  2. Ben February 3, 2016 at 12:49 am #

    Hello the Booster team,

    I would be interresting to know too if there is a solution about the request asked by Thea.

    I have opened a topic on the WordPress.org plugin support page :
    https://wordpress.org/support/topic/vat-percent-with-2-decimal-places-wcj_order_total_tax_percent

    Thanx a lot for your help 🙂

    Reply

    • Valentin Solovjov February 3, 2016 at 4:25 pm #

      Hi,

      sorry for delay. We will see what we can do about it and get back to you ASAP.

      BR,
      Val

    • Valentin Solovjov February 3, 2016 at 4:44 pm #

      Hi,

      if the problem still exist, please send us WordPress, WooCommerce and Booster version you use.

      BR,
      Val

    • Ben February 4, 2016 at 5:10 pm #

      Hello Valentin,

      No problem, thanx to you for the reply.

      For your information my setup was :
      Wordpress 4.4.1 / WooCommerce 2.5.1 / Booster 2.3.11
      I updated today to :
      Wordpress 4.4.2 / WooCommerce 2.5.2 / Booster 2.3.11
      The problem still persist.

      Thank you for keeping in touch

    • Valentin Solovjov February 8, 2016 at 6:32 pm #

      Hi,

      We done some modifications. You can test/use in dev version. You can download at http://booster.io/dev/ (need manually reinstall Booster for WooCommerce plugin). [wcj_order_total_tax_percent] shortcode fixed, precision attribute added.

      Example : [wcj_order_total_tax_percent precision="3"]

      Now I`m closing this post. Let us know if you still questions, email us to support@booster.io

      BR,
      Val

  3. Maxence June 28, 2016 at 3:23 pm #

    Hi
    have a question about tax. Here in quebec canada we have 2 tax. i would like to know if its possible to show those 2 tax separetely in the invoicing

    Reply

    • Booster Support Team July 4, 2016 at 4:32 pm #

      Hi,

      Sorry for the delay. Wasn’t possible, but I’ve added [wcj_order_taxes_html] shortcode to the plugin, which will display all taxes on separate lines. Please download the development version here – http://booster.io/dev/. You will need to uninstall the old version first (don’t worry your saved settings won’t disappear).

      Best regards,
      Tom

      Booster Support Team