[wcj_order_shipping_price]

Display WooCommerce order shipping price

Description

[wcj_order_shipping_price] shortcode displays WooCommerce order shipping price.

Args

excl_tax
(optional) Including (no) or excluding (yes) the taxes.

Default: no
hide_if_zero
(optional) If set to yes will return empty string instead of numeric zero “0”. Can be used in conjunction with before and after args, so in case the result is zero, the whole content will be hidden.

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

Example

[wcj_order_shipping_price hide_if_zero="yes" before="Shipping including TAX: "]
[wcj_order_shipping_price excl_tax="yes" hide_if_zero="yes" before="Shipping excluding TAX: "]
Recommended for PDF Invoicing and Packing Slips module
Accessible through:
  • [wcj_order_shipping_price]
Tested on WooCommerce 3.5.2 and WordPress 5.0
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. Byron Hasegawa March 8, 2018 at 9:00 am #

    i cant use this shortcode….
    display nothing….

    Reply to thread

    • Booster Support Team March 8, 2018 at 3:36 pm #

      Hi,

      Where are you trying to use it? Please note, that there must be some “current order” defined, so, for example, shortcode should work in PDF Invoicing module, but won’t work if you put it on single product page.

      Best regards,
      Tom

      Booster Support Team