Start a project

WooCommerce Single Variations Shortcode

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"]

Questions & answers (10)

  1. AnuragMarch 15, 2024

    I am using WooCommerce Single Variations plugin. i want to display single product variations on category archive page. when i am using shortcode its display product not found. so how can use this plugin product category page.?

  2. DanielMarch 15, 2024

    Please submit a ticket and we will look into that issue on your site asap.

  3. AnuragMarch 15, 2024

    I want to display single product variations on category archive page. when i am using [woocommerce_single_variations categories=”31″] shortcode then its displaying product not found.
    how to display single product variations on archive page using shortcode.?

  4. DenizNovember 17, 2023

    Hi

    How can I show only 4 or 6 prodcts?

  5. ChrisJune 26, 2023

    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

  6. DanielJune 26, 2023

    Yes you can set custom variation ids for the shortcode with ease.

  7. ValentinaNovember 9, 2022

    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!

  8. clerAugust 14, 2022

    Hi, when I add product variants via Shortcode no CSS styling is loaded.

    Any solution to this?

    Thank you

  9. DanielAugust 14, 2022

    You need to ask your theme developer to render the WooCommerce CSS stylesheets also on custom pages where you implemented our shortcode.

  10. BCAugust 2, 2021

    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.