How to find out master product of simple product?

Posted by Thomas on Stack Overflow See other posts from Stack Overflow or by Thomas
Published on 2010-05-17T07:01:16Z Indexed on 2010/05/17 9:20 UTC
Read the original article Hit count: 294

Filed under:
|
|

How can I find out, if a simple product is part of a configurable product and then get the master product? I need this for the product listing.

Just found out:

$_product->loadParentProductIds(); $parentIds = $_product->getParentProductIds();

© Stack Overflow or respective owner

Related posts about magento

Related posts about php