• Resolved amosajo

    (@amosajo)


    Hi, I am building a woocommerce site for a client, but I want to wrap my head around something logistically.

    She would like to have a several types of variable products.

    Let’s say we have variable dresses, variable purses, variable lipsticks, and each product varies on the attribute of color.

    We want swatches which display the variations of each of these products pictorially for the users.

    To tackle this I am currently creating three different attributes, with the same name: ‘color’. I do give them product-specific slugs to distinguish them. They then each have different terms and different swatch images assigned to them.

    This method works, but I’m wondering if there is a smarter way to go about this. I say this because I get the problem illustrated in the image below when I attempt to add one of my created attributes to a product:
    https://prntscr.com/kswxks

    This leaves me to recall the order of the specific ‘color’ attribute I am looking for.

    There has to be a smarter way to do this.

    Thank you all for sharing your wisdom.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Linda

    (@lindamork)

    Automattic Happiness Engineer

    Hi there,

    I’d create a global attribute for ‘color’ and then add as many terms for each color you need in Products > Attributes. Then when creating your product, “add” the colors you need as values in the Attributes tab of your product edit page before creating the variations. There are more details in the documentation. Using global attributes for things such as size and color will help cut down your workload!

    Thread Starter amosajo

    (@amosajo)

    I will try this. Thank you Linda!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Avoid Duplicating Attribute Names With Multiple Variable Products/Swatches’ is closed to new replies.