[wcj_product_sku]

Display WooCommerce product SKU

Description

[wcj_product_sku] shortcode displays WooCommerce product SKU (stock keeping unit).

Args

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) Make shortcode results visible to everyone (all), or to admin only (admin).

Default: all

Example

<p>Product SKU: [wcj_product_sku]</p>

or if you want to show SKU to shop manager only:

[wcj_product_sku before="<p>Product SKU: " after="</p>" visibility="admin"]
Recommended for WooCommerce Product Info module
Accessible through:
  • [wcj_product_sku]
Tested on WooCommerce 3.2.5 and WordPress 4.9
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

3 Comments

  1. Tom May 18, 2017 at 2:34 pm #

    Hello, is possbile to display only product ID? For example something like this [wcj_product_id]?

    Thanks for Your reply.
    Tom

    Reply to thread

    • Booster Support Team May 19, 2017 at 2:12 pm #

      Hi Tom,

      Sorry for a delay. Wasn’t possible, but I’ve just added it to the plugin. Please download the development version here – https://booster.io/dev/. You will need to uninstall the old plugin version first (don’t worry your saved settings won’t disappear). There I’ve added [wcj_product_id] shortcode.

      Please let me know if it works as expected and If you like Booster, please leave us a rating.

      Best regards,
      Tom

      Booster Support Team
    • Tom May 19, 2017 at 9:02 pm #

      Thank You very much! Works great in newest update 🙂

      Best Regard
      Tom