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;
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
Apr 18 at 9:12
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 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
add a comment |
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
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 Apr 18 at 9:19
answered Apr 18 at 9:08
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
Apr 18 at 9:12