Group Product Name / Associated to product

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hey Guys,

I'm having trouble accessing the main Group Product name / Associated to product field. For example item.Product. does not give an option for associated to product field name.


Thanks,
6 years ago
Let me explain you.

If you see Product table than one field ParentGropedProductId

through this field you can get associated product.

https://ibb.co/gJA7oH

Nikon D5500 DSLR(id=13) is group product.it has two associate product

1.Nikon D5500 DSLR - Black(id=14)
2.  Nikon D5500 DSLR - red(id=15)

here you can see db How nop is achieve.

https://ibb.co/d66aax

Associated product 1 and 2 have parentgroupproductid = 13.

so it means you can access associated product like this item.ParentGroupProductId if > 0 then nothing otherwise that is associated with parent product or you can use product type id there is 5 or 10 (simple or group product).

Hope this make sense.
6 years ago
sk5202 wrote:
Let me explain you.

If you see Product table than one field ParentGropedProductId

through this field you can get associated product.

https://ibb.co/gJA7oH

Nikon D5500 DSLR(id=13) is group product.it has two associate product

1.Nikon D5500 DSLR - Black(id=14)
2.  Nikon D5500 DSLR - red(id=15)

here you can see db How nop is achieve.

https://ibb.co/d66aax

Associated product 1 and 2 have parentgroupproductid = 13.

so it means you can access associated product like this item.ParentGroupProductId if > 0 then nothing otherwise that is associated with parent product or you can use product type id there is 5 or 10 (simple or group product).

Hope this make sense.


Yes I was able to get what I needed, very similar to this example. I appreciate the help!

Thank You
6 years ago
Yeah, always welcome...!!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.