Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7433613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:41:57+00:00 2026-05-29T09:41:57+00:00

I need to get the parent configurable product from a simple product, even if

  • 0

I need to get the parent configurable product from a simple product, even if the parent product is marked as disabled. I also need to get the status of the configurable product (enabled or disabled).

Right now I’m getting the parent product like this:

$parentIds = Mage::getResourceSingleton('catalog/product_type_configurable')->getParentIdsByChild($product->getId());
if (isset($parentIds[0])) {
    $product = Mage::getModel('catalog/product')->load($parentIds[0]);
}

This works perfectly unless the configurable product has been disabled, where the $parentIds array is empty. I need to get the configurable product even if it’s disabled, and also determine if the configurable product is enabled/disabled.

Any help would be appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:41:57+00:00Added an answer on May 29, 2026 at 9:41 am

    I’ve done a little digging around, and I can’t seem to reproduce your issue.

    When I call getParentIdsByChild() on a simple with a disabled configurable, I still get the parent product ID.

    $parentIds = Mage::getResourceSingleton('catalog/product_type_configurable')
          ->getParentIdsByChild(14412);
    var_dump($parentIds);
    

    Gives me:

    array(1) {
      [0]=>
      string(5) "14446"
    }
    

    14446 has a status of disabled. I’ve also tried it as in stock and out of stock.

    Looking at the actual function on the resource file

    Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Type_Configurable::getParentIdsByChild()
    

    I can see that it looks in the table catalog_product_super_link which doesn’t have any fields for status, and therefore should always return the parent ID, if the product link exists.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to get the value from the parent form into the child; not
I need to get parent directory from file in C++: For example: Input: D:\Devs\Test\sprite.png
I need to get an NSString from my parent view controller to its child
I'm making a xml image gallery. And I need get the path from parent,
I have the following HTML and I need to get the first div parent
I need to get the parent div of the hyperlink clicked. In the example
I need to get a value of a text box which is the parent
I need to get the current mercurial changeset to return in a very simple
I need to get the parent's taxonomy ID by the sub taxonomy's name. E.g.:
Within an iFrame, we need to get the parent's window/document height. Is there a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.