[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.8.1 and WordPress 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.

Leave a Reply

Comments

5 Comments

  1. Ravi Kumar September 24, 2019 at 7:24 am #

    Hello Sir,

    is there possible to put product sku code on invoice or packing slip,

    if i customer order 3 products on same time, on invoice after each products there should be product sku’s code.
    because i am not able to see SKU on invoice label, or anywhere.
    you have provided the shortcut but when i implemented , it is not showing there

    Reply to thread

    Avatar
    • RokasJ September 24, 2019 at 7:48 am #

      Hi Ravi,

      Yes, that’s possible. You will have to edit [wcj_order_items_table] shortcode in PDF document template to include ‘product_sku’ column. More information here: https://booster.io/shortcodes/wcj_order_items_table/.

      Best regards,
      Rokas – Support Team

      Avatar
  2. 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

    Avatar
    • 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

      Avatar