[wcj_product_price_including_tax]

Display WooCommerce product price including tax

Description

[wcj_product_price_including_tax] shortcode displays WooCommerce product price including tax. Shortcode has no required attributes, optional attributes are listed below.

Args

hide_currency
(optional) Hide currency symbol (yes).

Default: no
product_id
(optional) The integer ID for an product.

Default: The current product 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
visibility
(optional) User visibility. Possible values are WordPress user roles (including custom), e.g. administrator, shop_manager, customer etc.

Default: all
location
(optional) Make shortcode results visible only to customers from specific country (by user IP). Value is two letter country code.

Default: all
site_visibility
(optional) Restrict shortcode output to some pages only. Possible values: single, page, archive.

Default: None
wpml_language
(optional) Restrict shortcode output to certain WPML language only. Possible values are two letter language codes. Can be comma separated list.

Default: None
not_wpml_language
(optional) Restrict shortcode output to exclude certain WPML languages. Possible values are two letter language codes. Can be comma separated list.

Default: None

Examples

[wcj_product_price_including_tax before="Price incl. TAX: "]
Recommended for WooCommerce Product Info module
Accessible through:
  • [wcj_product_price_including_tax]
Tested on WooCommerce 3.1.1 and WordPress 4.8
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. Karl Ravn November 24, 2016 at 8:10 am #

    It would be good if multiply_by was implemented in this shortcode as well, since we are forced to be using including prices in our country, and want to show a “price per month” for the customer.

    Reply

    • Booster Support Team November 24, 2016 at 9:57 pm #

      Hi Karl,

      Sure, no problem. 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). I’ve added multiply_by attribute to both [wcj_product_price_excluding_tax] and [wcj_product_price_including_tax] shortcodes. Please let me know if it works as expected.

      Best regards,
      Tom

      Booster Support Team