The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

add short code to fetch sku (2 posts)

  1. chrp
    Posted 3 years ago #

    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?



  2. chrp
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic