WordPress.org

Ready to get started?Download WordPress

Forums

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

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

Reply

You must log in to post.

About this Plugin

About this Topic