fbpx

Description

[wcj_product_price] shortcode displays price for WooCommerce product. Price can be modified before output.

Args

product_id
(optional) The integer ID for an product.
Default: The current product ID, if exists
multiply_by
(optional) If set, the price will be multiplied by this value.
Default: None
hide_currency
(optional) If set to yes will hide currency symbol and formatting from the result.
Default: no
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) Make shortcode results visible to everyone (all), or to admin only (admin).
Default: all

Example

Product price with 5% fee: [wcj_product_price multiply_by="1.05"]
Recommended for WooCommerce Product Info module
Accessible through:
  • [wcj_product_price]
Tested on WooCommerce 4.7.1 and WordPress 5.5.3
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.