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

What is the origin of 落第?

License to disallow distribution in closed source software, but allow exceptions made by owner?

White walkers, cemeteries and wights

What does it mean that physics no longer uses mechanical models to describe phenomena?

A `coordinate` command ignored

Universal covering space of the real projective line?

How does light 'choose' between wave and particle behaviour?

Trying to understand entropy as a novice in thermodynamics

Why complex landing gears are used instead of simple,reliability and light weight muscle wire or shape memory alloys?

"klopfte jemand" or "jemand klopfte"?

Why is std::move not [[nodiscard]] in C++20?

How to write capital alpha?

Monty Hall Problem-Probability Paradox

Why do early math courses focus on the cross sections of a cone and not on other 3D objects?

what is the log of the PDF for a Normal Distribution?

The test team as an enemy of development? And how can this be avoided?

What does 丫 mean? 丫是什么意思?

The Nth Gryphon Number

Tannaka duality for semisimple groups

Random body shuffle every night—can we still function?

Is there public access to the Meteor Crater in Arizona?

Is there hard evidence that the grant peer review system performs significantly better than random?

Resize vertical bars (absolute-value symbols)

Getting out of while loop on console



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
    2 days ago

















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
    2 days ago













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 2 days ago









Rv Singh

730418




730418






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 2 days ago









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
    2 days ago

















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

    – abdus
    2 days ago
















you can handle this with configurable products or bundle products.

– abdus
2 days ago





you can handle this with configurable products or bundle products.

– abdus
2 days ago










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 2 days ago

























        answered 2 days ago









        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

            Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

            Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

            Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림