I need to get all varient products(IDs) assigned to a specific configurable product
pls help, THanks.
I need to get all varient products(IDs) assigned to a specific configurable product
pls help, THanks.
Do you want all products without any filters, but it is showing only a part of the result set?
There may be several cases:
Most of the cases, it is inner limit which restricts.
Again, found a very similar thread here. Hope this helps.
One another better way to do the same
$productsCollection = Mage::getResourceModel('catalog/product_collection')
->addAttributeToSelect('*')
->addAttributeToFilter('type_id','configurable') //load only configurable products
->load();
foreach($productsCollection as $product):
/*Get Associated Simple Products*/
$associatedSimpleProducts = $product->getTypeInstance()->getUsedProductIds();
print_r($associatedSimpleProducts);
endforeach;
I think this is the better one because it removes the necessity to load your product model again , as you already have that in your collection ;-)