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
- Default:
- 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
- Default:
Example
Product price with 5% fee: [wcj_product_price multiply_by="1.05"]
Recommended for WooCommerce Product Info module
Accessible through:
- [wcj_product_price]