Author Topic: Child product of child product?  (Read 569 times)

txkeyboards

  • Beginner
  • *
  • Posts: 31
  • A beginner
Child product of child product?
« on: September 13, 2019, 08:39:20 am »
I want to sell:

Shirt
> Color
   > Size

I created: Shirt, then Color as generic child, then Size as generic child under Color.

Things can be ordered just fine BUT it overrides all the value in the cart. My cart shows: Name as Medium, Color Medium and Size Medium. LOL!

Can anyone help? I tried both options disable overrides and overrides but that did not help...

Also, I use child variants for stock tracking unless I am overdoing this?...

Thank you so much!

txkeyboards

  • Beginner
  • *
  • Posts: 31
  • A beginner
Re: Child product of child product?
« Reply #1 on: September 13, 2019, 10:17:12 am »
Nevermind using multivariant solves exactly this.

For anyone who doesn't know, here is a step-by-step guide:

1/ Create a multivariant on Custom field, set Title to "Option" (or anything you want)
2/ Set "Yes" to Show Title, Published and Cart Attribute, "No" to everything up to Hidden.
3/ Type "addtocart" to Layout Position
4/ For Option box, from top to bottom is: yes, no, yes, no, no, no, no.
5/ String Customfiled is going to be a string customfield that you already created (let's say, Shirt Size) but it's not important.
6/ Now create a parent product, let's say "Shirt". In your customfield, choose "Option" (the multivariant that you created) the click Save.
7/ The first box with a list of product height, product width, etc. choose "Use customlabel", then type Color on the next box, then the next box type Black, hit enter, then type White then click Save
8/ etc.