Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to get “sub” products ? 
 
Rafal
Member
 
Total Posts:  42
Joined:  2007-11-22
Munich
 

Hi,

I have to write code which gets “sub-products” of a super-product (configurable).
I was looking for suitable method a few hours, unfortunately without success.
It suppose to be very easy but somehow I couldn’t find it.

The only one think which I found it’s table catalog_product_super_link.
In my case I have following data:

select from catalog_product_super_link where parent_id=61;
+---------+------------+-----------+
link_id product_id parent_id |
+---------+------------+-----------+
|      
11 |         57 |        61 |
|      
12 |         58 |        61 |
|      
13 |         60 |        61 |
+---------+------------+-----------+

I could just read it from the database but it’s not good idea ...

with best regards,
Rafal

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jonathan Hedrén
Member
 
Total Posts:  67
Joined:  2007-08-31
Sweden
 

A wild guess:
Mage_Catalog_Model_Product::getSuperGroupProducts()

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rafal
Member
 
Total Posts:  42
Joined:  2007-11-22
Munich
 

It doesn’t work. I tried.
But still it’s for grouped products. In my case it’s configurable product.

with best regards,
Rafal

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top