I created a new module to create a section in admin panel. This module section has a sub-section "Associated products" where I can add one or more products to each item in that module.
I am able to get the field values using functions like
$combo->getName()
$combo->getComments()
But I am not able to get the associated products to that item using
$combo->getAssociatedProducts()
What I tried is as follows:
<?php $comboCollection = Mage::getResourceSingleton('combo/combo_collection'); ?>
<?php
foreach ($comboCollection as $combo) {
zend_debug::dump($combo->getAssociatedProducts($combo)); //giving error
}
?>
PS: here $combo
is not a product, it is just an item in the created module.
Explanation: