Title: manage sub-attribute
Last modified: June 27, 2022

---

# manage sub-attribute

 *  Resolved [federico_a](https://wordpress.org/support/users/federico_a/)
 * (@federico_a)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/)
 * I have a problem with the attributes of an ecommerce that I don’t know how to
   fix correctly.
    I have a product with a “FABRICS” attribute. Each Fabric can 
   be: Fabric Category 1, Fabric category 2, Fabric category 3, Fabric category 
   4. Each fabric category can have n colors (different for each fabric category).
   The price of the product is determined by the fabric category. To order a product,
   the user must first select the Fabic category and then the color.
 * Do you have any ideas for managing products correctly?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/manage-sub-attribute/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/manage-sub-attribute/page/2/?output_format=md)

 *  [aetta](https://wordpress.org/support/users/chiape/)
 * (@chiape)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15776016)
 * Hi [@federico_a](https://wordpress.org/support/users/federico_a/)! Thanks for
   reaching out to us!
 * To clarify it a bit, are you using variable products?
 * You can read more about how to create them here:
 * [https://woocommerce.com/document/variable-product/](https://woocommerce.com/document/variable-product/)
 * If this is not exactly what you’re looking for, no worries! Share with us more
   details of what you’re trying to achieve, and we’d love to take a look at it 
   again!
 * My very best,
 *  Thread Starter [federico_a](https://wordpress.org/support/users/federico_a/)
 * (@federico_a)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15776034)
 * yes, I use variable products.
    I’m looking for a way to simplify management because
   I don’t want to insert the price in category fabric / color category variation.
   The colors for each color category are about 50 and a product can also have all
   4 selectable fabric categories. Ideally, the site administrator only enters the
   fabric categories and the price for each fabric category. the color should be
   entered automatically.
 *  [Mashi](https://wordpress.org/support/users/shaonback2/)
 * (@shaonback2)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15776191)
 * Hello [@federico_a](https://wordpress.org/support/users/federico_a/)!
 * > Ideally, the site administrator only enters the fabric categories and the price
   > for each fabric category. the color should be entered automatically.
 * I understand you want your variable product to have 4 variations(Fabric Category
   1, Fabric category 2, Fabric category 3, Fabric category 4).
    Once your customers
   select one of those variations they will need to select 1 of those 50 colors 
   as well but that will not change the price you have for those(4) variations Right?
 * If that is what you want then you can follow the steps below to accomplish this…
    1. Create Fabric Category global attribute which will have 4 terms(Fabric Category
       1, Fabric category 2, Fabric category 3, Fabric category 4).
    2. Create the Color global attribute which will have 50 terms(white, black, blue,
       green,….)
    3. Create your variable product with the Fabric Category attribute.
    4. Now, add the color attribute to this product **but don’t use it for variations.**
 * Here is how attributes look on product edit page.
    ⌊attributes⌉ Link to full 
   size image: [https://snipboard.io/cP7dav.jpg](https://snipboard.io/cP7dav.jpg)
 * Here is how the product looks on the live site.
 * 
    Link to full size image: [https://snipboard.io/1rEo5y.jpg](https://snipboard.io/1rEo5y.jpg)
 * —————————————————————————
 * You may know more about how to create a variable product on this page.-> [https://woocommerce.com/document/variable-product/](https://woocommerce.com/document/variable-product/)
 * Hope it helps.
 *  Thread Starter [federico_a](https://wordpress.org/support/users/federico_a/)
 * (@federico_a)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15778515)
 * yes, the solution you suggested should be fine in fact I set up a product like
   this
    [https://prnt.sc/IdbufZUn_XNp](https://prnt.sc/IdbufZUn_XNp) but I don’t
   understand because if the attribute is set to “don’t use it for variations” the
   attribute is not visible on the product page: [https://prnt.sc/MFqJRBNq5mNV](https://prnt.sc/MFqJRBNq5mNV)
   if instead active for all types of colors “use in variations” I have this situation:
   [https://prnt.sc/9XniwlhXCN6U](https://prnt.sc/9XniwlhXCN6U) however it is not
   correct because I should only be able to select one color. if you want to see
   the test product here it is: [https://dev.treativa.it/bozze/chairs/prodotto/gotham-sl/](https://dev.treativa.it/bozze/chairs/prodotto/gotham-sl/)
   in this case “color cat A” and “color cat B” are set with “use in variations”,
   while “color cat C” and “color cat D” are not set in variations
 *  [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15778550)
 * You need TWO attributes:
 * Fabric Category – like you have in your screenshot.
    Fabric Colour – do not separate
   the colours into categories in the Attributes tab – put them all in one attribute!
 * Then you create variations like this:
 * Fabric Category A – Colour 1
    Fabric Category B – Colour 2 Fabric Category C –
   Colour 3 Fabric Category D – Colour 4 … carry on for all the colours in Fabric
   Category A
 * Then do the same for the other 3 Fabric Categories – you’ll have 50+ variations.
 * That way, when you select Fabric Category A only those colours will show.
 *  Thread Starter [federico_a](https://wordpress.org/support/users/federico_a/)
 * (@federico_a)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15778623)
 * ok thanks for the reply.
    however, I was also looking for a way to simplify product
   management. If set as you say I have to set the price for each fabric/color combination.
   Instead I would like to set the price only in the fabric variations. Furthermore,
   I cannot set up a management with a bulk editor, so I had divided the color categories.(
   the colors will be fixed once the fabric is selected).
 *  [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15778723)
 * That’s not the way variations work though unfortunately!
 * You could try something like Extra Product Options: [https://codecanyon.net/item/woocommerce-extra-product-options/7908619](https://codecanyon.net/item/woocommerce-extra-product-options/7908619)
 * That will let you set up the product exactly as you need.
 *  Thread Starter [federico_a](https://wordpress.org/support/users/federico_a/)
 * (@federico_a)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15778742)
 * I understand! but in fact I was looking for a way to simplify product management
 *  [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15778816)
 * The plugin will be able to do that.
 * Have the fabric category as a variation – set the price on each
 * Use the plugin to add the colours – you can use conditional logic’ to give different
   colour choices depending on which fabric category variation is selected.
 *  [Mashi](https://wordpress.org/support/users/shaonback2/)
 * (@shaonback2)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15779937)
 * Hello [@federico_a](https://wordpress.org/support/users/federico_a/)!
 * > yes, the solution you suggested should be fine in fact I set up a product like
   > this
   >  [https://prnt.sc/IdbufZUn_XNp](https://prnt.sc/IdbufZUn_XNp) but I don’t
   > understand because if the attribute is set to “don’t use it for variations”
   > the attribute is not visible on the product page: [https://prnt.sc/MFqJRBNq5mNV](https://prnt.sc/MFqJRBNq5mNV)
 * I just tested the steps for creating a new product and found it is showing all
   attributes on the product page.
    I created a small video showing the steps I 
   followed to create that variable product. 👉 [https://drive.google.com/file/d/1kqVoL-ehdU4pKoWiJlA8Ll6GL0NIiXAH/view?usp=sharing](https://drive.google.com/file/d/1kqVoL-ehdU4pKoWiJlA8Ll6GL0NIiXAH/view?usp=sharing)
   Please consider checking that and make sure to create the product in the way 
   I created it.
 * Hope it helps.
 *  Thread Starter [federico_a](https://wordpress.org/support/users/federico_a/)
 * (@federico_a)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15780422)
 * Hi, [@shaonback2](https://wordpress.org/support/users/shaonback2/),
 * > I just tested the steps for creating a new product and found it is showing 
   > all attributes on the product page.
   >  I created a small video showing the steps
   > I followed to create that variable product. 👉 [https://drive.google.com/file/d/1kqVoL-ehdU4pKoWiJlA8Ll6GL0NIiXAH/view?usp=sharing](https://drive.google.com/file/d/1kqVoL-ehdU4pKoWiJlA8Ll6GL0NIiXAH/view?usp=sharing)
 * your solution should be fine only that to me the color attribute as it is set
   is not displayed in the product sheet.
    See video [https://www.loom.com/share/28f654a747d648059e589764807eb1cc](https://www.loom.com/share/28f654a747d648059e589764807eb1cc)
 *  Plugin Support [Stuart Duff – a11n](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15781497)
 * Hi [@federico_a](https://wordpress.org/support/users/federico_a/)
 * Can you detail some more about what you refer to as a product sheet?
 * For reference, by default when creating Variable Products in WooCommerce all 
   attributes which are to be part of a variation should be set to **Used for variations**.
 * ![](https://cloudup.com/chKXPI0EGud+)
 * Image Link: [https://cloudup.com/chKXPI0EGud](https://cloudup.com/chKXPI0EGud)
 * [https://woocommerce.com/document/variable-product/](https://woocommerce.com/document/variable-product/)
 * If this does not work for you we’d suggest looking for an additional plugin to
   help implement the variation management you’d like for your project.
 *  [Mashi](https://wordpress.org/support/users/shaonback2/)
 * (@shaonback2)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15781626)
 * Hello [@federico_a](https://wordpress.org/support/users/federico_a/)!
 * Pardon me for my previous incomplete answer.
 * When I was checking the issue on my test site I added the code [mentioned on this gist](https://gist.github.com/mtx-z/021d092442f43e895e7fc740ef058f84)
   to my site’s functions.php file through [code snippet](https://wordpress.org/plugins/code-snippets/).
   
   But I forgot that later and didn’t mention it earlier.
 * Can you try adding that code to your site’s functions.php file through the code
   snippet plugin([https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/))
   and check the product that you created earlier by following my instructions and
   see if it works now?
 *  Thread Starter [federico_a](https://wordpress.org/support/users/federico_a/)
 * (@federico_a)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15782044)
 * hello [@shaonback2](https://wordpress.org/support/users/shaonback2/),
    now with
   the code you sent me I see the color attribute (with the checkbox NOT selected“
   used in variations”) as you told me. now I have to work on it because the color
   has to be selected (mandatory) to add a product to the cart. also try to change
   the graphics of the color field (no drop-down list but color list)
 *  Thread Starter [federico_a](https://wordpress.org/support/users/federico_a/)
 * (@federico_a)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/#post-15782176)
 * Hi [@stuartduff](https://wordpress.org/support/users/stuartduff/),
    I think I
   learned how to set a variable product. I was trying the indications of [@shaonback2](https://wordpress.org/support/users/shaonback2/)
   to try to display attributes even though I did NOT check the “used in variation”
   checkbox. In this way I should be able to greatly simplify the management of 
   variation prices (only 4 price entries) because otherwise they would be about
   100 per product.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/manage-sub-attribute/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/manage-sub-attribute/page/2/?output_format=md)

The topic ‘manage sub-attribute’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 16 replies
 * 6 participants
 * Last reply from: [Jim W – a11n](https://wordpress.org/support/users/thracefulton/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/manage-sub-attribute/page/2/#post-15783338)
 * Status: resolved