Parent-child attributes in Magento Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Parent/child relationship in custom moduleRemove Parent Category from child category URLChild theme not loading parent theme styles | SnowdogApps blank-sassHow to change parent category for an existing child category?Child theme is loaded before parent themeGet product parent name from child productHow to list Parent & Child Category BY KnockoutjsPass boolean or variable from Child Block to Parent Block?Magento 2 - Layered navigation Parent and Child Category Filter issueMagento 2.3 - Get child categories of parent

Compiling and throwing simple dynamic exceptions at runtime for JVM

Why does my GNOME settings mention "Moto C Plus"?

xkeyval -- read keys from file

Can a Knight grant Knighthood to another?

Magento 2 Editing phtml files in Production Mode

Weaponising the Grasp-at-a-Distance spell

Raising a bilingual kid. When should we introduce the majority language?

Is my guitar’s action too high?

Does GDPR cover the collection of data by websites that crawl the web and resell user data

Can I take recommendation from someone I met at a conference?

Are bags of holding fireproof?

How can I introduce the names of fantasy creatures to the reader?

"Destructive force" carried by a B-52?

Why is ArcGIS Pro not symbolizing my entire range of values?

How to break 信じようとしていただけかも知れない into separate parts?

Can Deduction Guide have an explicit(bool) specifier?

Are Flameskulls resistant to magical piercing damage?

Determine the generator of an ideal of ring of integers

Lights are flickering on and off after accidentally bumping into light switch

Import keychain to clean macOS install?

Can the van der Waals coefficients be negative in the van der Waals equation for real gases?

Does using the inspiration rules for character defects tend to encourage players to display MGS?

Pointing to problems without suggesting solutions

Assertions In A Mock Callout Test



Parent-child attributes in Magento



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Parent/child relationship in custom moduleRemove Parent Category from child category URLChild theme not loading parent theme styles | SnowdogApps blank-sassHow to change parent category for an existing child category?Child theme is loaded before parent themeGet product parent name from child productHow to list Parent & Child Category BY KnockoutjsPass boolean or variable from Child Block to Parent Block?Magento 2 - Layered navigation Parent and Child Category Filter issueMagento 2.3 - Get child categories of parent



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have car parts products in my M2 store and I need to give my clients availability to filter parts by model of car and year. Each product can be attached to different models/years, in example:



Cabin air filter:



Honda Civic - 2016
Honda Civic - 2017
Honda Civic - 2018
Honda Accord - 2013
Honda Accord - 2014
Honda Accord - 2015
Honda Accord - 2016


If I would have only models, I could add just simple product attribute. But how should I handle this situation, when I have "parent" attribute (model) and "child" attribute (year)?










share|improve this question









New contributor




poo-11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • you can handle this with configurable products or bundle products.

    – abdus
    Apr 18 at 9:12

















0















I have car parts products in my M2 store and I need to give my clients availability to filter parts by model of car and year. Each product can be attached to different models/years, in example:



Cabin air filter:



Honda Civic - 2016
Honda Civic - 2017
Honda Civic - 2018
Honda Accord - 2013
Honda Accord - 2014
Honda Accord - 2015
Honda Accord - 2016


If I would have only models, I could add just simple product attribute. But how should I handle this situation, when I have "parent" attribute (model) and "child" attribute (year)?










share|improve this question









New contributor




poo-11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • you can handle this with configurable products or bundle products.

    – abdus
    Apr 18 at 9:12













0












0








0








I have car parts products in my M2 store and I need to give my clients availability to filter parts by model of car and year. Each product can be attached to different models/years, in example:



Cabin air filter:



Honda Civic - 2016
Honda Civic - 2017
Honda Civic - 2018
Honda Accord - 2013
Honda Accord - 2014
Honda Accord - 2015
Honda Accord - 2016


If I would have only models, I could add just simple product attribute. But how should I handle this situation, when I have "parent" attribute (model) and "child" attribute (year)?










share|improve this question









New contributor




poo-11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have car parts products in my M2 store and I need to give my clients availability to filter parts by model of car and year. Each product can be attached to different models/years, in example:



Cabin air filter:



Honda Civic - 2016
Honda Civic - 2017
Honda Civic - 2018
Honda Accord - 2013
Honda Accord - 2014
Honda Accord - 2015
Honda Accord - 2016


If I would have only models, I could add just simple product attribute. But how should I handle this situation, when I have "parent" attribute (model) and "child" attribute (year)?







magento2






share|improve this question









New contributor




poo-11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




poo-11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Apr 18 at 9:23









Rv Singh

732418




732418






New contributor




poo-11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Apr 18 at 6:51









poo-11poo-11

1




1




New contributor




poo-11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





poo-11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






poo-11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • you can handle this with configurable products or bundle products.

    – abdus
    Apr 18 at 9:12

















  • you can handle this with configurable products or bundle products.

    – abdus
    Apr 18 at 9:12
















you can handle this with configurable products or bundle products.

– abdus
Apr 18 at 9:12





you can handle this with configurable products or bundle products.

– abdus
Apr 18 at 9:12










1 Answer
1






active

oldest

votes


















0














Magento 2 doesn't support parent-child product attribute.



Design table as following:



Make: ID, Name, Created_At (Honda, Audi, BMW, Ford.. )
Model: ID, Make_ID, Name, Created_At (Civic, Accord, A3, A4 ...)
Year: Make_ID, Model_ID, From, To, Created_At (2015, 2016, 2019...)


And use this table to link product with vehicle (Make, Model, Year)



Product_Vehicle: ID, Make_ID, Model_ID, Year_ID, Product_ID





share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    poo-11 is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270586%2fparent-child-attributes-in-magento%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Magento 2 doesn't support parent-child product attribute.



    Design table as following:



    Make: ID, Name, Created_At (Honda, Audi, BMW, Ford.. )
    Model: ID, Make_ID, Name, Created_At (Civic, Accord, A3, A4 ...)
    Year: Make_ID, Model_ID, From, To, Created_At (2015, 2016, 2019...)


    And use this table to link product with vehicle (Make, Model, Year)



    Product_Vehicle: ID, Make_ID, Model_ID, Year_ID, Product_ID





    share|improve this answer





























      0














      Magento 2 doesn't support parent-child product attribute.



      Design table as following:



      Make: ID, Name, Created_At (Honda, Audi, BMW, Ford.. )
      Model: ID, Make_ID, Name, Created_At (Civic, Accord, A3, A4 ...)
      Year: Make_ID, Model_ID, From, To, Created_At (2015, 2016, 2019...)


      And use this table to link product with vehicle (Make, Model, Year)



      Product_Vehicle: ID, Make_ID, Model_ID, Year_ID, Product_ID





      share|improve this answer



























        0












        0








        0







        Magento 2 doesn't support parent-child product attribute.



        Design table as following:



        Make: ID, Name, Created_At (Honda, Audi, BMW, Ford.. )
        Model: ID, Make_ID, Name, Created_At (Civic, Accord, A3, A4 ...)
        Year: Make_ID, Model_ID, From, To, Created_At (2015, 2016, 2019...)


        And use this table to link product with vehicle (Make, Model, Year)



        Product_Vehicle: ID, Make_ID, Model_ID, Year_ID, Product_ID





        share|improve this answer















        Magento 2 doesn't support parent-child product attribute.



        Design table as following:



        Make: ID, Name, Created_At (Honda, Audi, BMW, Ford.. )
        Model: ID, Make_ID, Name, Created_At (Civic, Accord, A3, A4 ...)
        Year: Make_ID, Model_ID, From, To, Created_At (2015, 2016, 2019...)


        And use this table to link product with vehicle (Make, Model, Year)



        Product_Vehicle: ID, Make_ID, Model_ID, Year_ID, Product_ID






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 18 at 9:19

























        answered Apr 18 at 9:08









        bang.nguyen47bang.nguyen47

        1115




        1115




















            poo-11 is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            poo-11 is a new contributor. Be nice, and check out our Code of Conduct.












            poo-11 is a new contributor. Be nice, and check out our Code of Conduct.











            poo-11 is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270586%2fparent-child-attributes-in-magento%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

            БиармияSxpst500bh2ntaf! 3h2r