Support » Plugin: WooCommerce » add short code to fetch sku

  • I am sure this is easy, but I just have no clue how to achieve this:

    I want to add the sku of a product in more than one place, in addition to the “normal” place. The place where it’s added should be flexible.

    So I thought of creating a short code via functions.php, something like [showsku] that I can add wherever in the product page, that will output something like “SKU: xxxxxxxx”.

    Any suggestions on how I can achieve this?


Viewing 1 replies (of 1 total)
  • Oh, a similar question:

    How to create a short code for displaying the value of a certain attribute within the product page or within product descriptions?

Viewing 1 replies (of 1 total)
  • The topic ‘add short code to fetch sku’ is closed to new replies.