Magento: get associated parent products id


$product_type = $product->getData('type_id');
if ($product_type=='simple') {
$parentIdArray = $product->loadParentProductIds()->getData('parent_product_ids');
print_r($parentIdArray);
}

Check the comments from Gabriel Somoza for getting the Parent Product Ids for Magento versions greater than or equal to 1.4.2

Advertisements
Magento: get associated parent products id

4 thoughts on “Magento: get associated parent products id

  1. I have to say i am very impressed with the way you efficiently site and your posts are so informative. You have really have managed to catch the attention of many it seems, keep it up!

    Like

  2. I dont think Ive scan anything like this before. So good to find somebody with some original thoughts on this subject. thank for starting this up. This site is something that is needed on the web, someone with a little originality. Good job for bringing something new to the internet!

    Like

  3. I really like the fresh perpective you did on the issue. Really was not expecting that when I started off studying. Your concepts were easy to understand that I wondered why I never looked at it before. Glad to know that there’s an individual out there that definitely understands what he’s discussing. Great job

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s