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;
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
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.
add a comment |
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
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
add a comment |
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
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
magento2
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.
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
edited 2 days ago
answered 2 days ago
bang.nguyen47bang.nguyen47
1115
1115
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
you can handle this with configurable products or bundle products.
– abdus
2 days ago