I'm using bundle products, and want to get the ID of simple products.
I was trying to get the ID from the product selection, but I think it's impossible.
My code:
<?php foreach ($_options as $_option): ?>
<?php
$_selections = $_option->getSelections();
foreach ($_selections as $_selection) {
$id = $_selection->getProductId();
$product = Mage::getModel('catalog/product')->load($id);
$descripcion = $product->getDescription();
$descriptions[ $id ] = $descripcion;
}
?>
But the $_selection->getProductId()
its the product ID SELECTION, not the product ID from catalog.
Any idea?