WordPress.org

Forums

WooCommerce - excelling eCommerce
add short code to fetch sku (2 posts)

  1. chrp
    Member
    Posted 1 year 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?

    Thanks!!!

    http://wordpress.org/extend/plugins/woocommerce/

  2. chrp
    Member
    Posted 1 year 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 - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic