Introduced in version 1.3.9 you can use the following shortcode to display variations directly on any page.

[woocommerce_single_variations]

Parameter you can use:

  • products (product variation IDs comma separated)
  • parent_products (parent product variable Ids comma separated)
  • categories (category IDs comma separated)
  • order (default: DESC)
  • orderby (default: menu_order)

An example with product variation IDs:

[woocommerce_single_variations products="813"]

7 thoughts on “WooCommerce Single Variations Shortcode

  1. BC says:

    How do I select or display one product variation on a page? I want to show 4 products on the home page and select 2 variations of the same product to display here.

  2. Valentina says:

    Hi,
    it’s a great plugin. The only thing I miss is how to order my variations according to “best_selling”. Is it possible?
    Thanks in advance!

  3. Chris says:

    I can use the shortcode to show all the variations, for example, I want the shortcode to show me all the M size options of the size variation, than on another page with another shortcode to show all the S of the size variation

Leave a Reply

Your email address will not be published. Required fields are marked *