Well, I am working on my first Magento website. I am using Magento 1.9.2
& lunxury theme 1.2.X
I am trying to add products in left navigation bar manually.
What I have done so far
In my app\design\frontend\mgstheme\luxury\template\mgs\mpanel\template\category-navigation.phtml
File I put this code.
<?php
$products = Mage::getModel('catalog/product')->getCollection()->addAttributeToSelect('*');
?>
<ul id="content-navigation">
<?php echo $_menu ?>
<li>
<ul>
<?php foreach ($products as $_product) { ?>
<li><?php echo $_product->getName(); ?></li>
<?php } ?>
</ul>
</li>
</ul>
for now, its printing all products but I want all products under their category name.
I am attaching screenshot for reference here jemmy proof lock to cupboard are the categories and after that its loading all products
\app\code\core\Mage\Catalog\Block\navigation.php
this file may have code... Help me to editing it