Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Where to find the .phtml to edit the categories menu? 
 
kdigennaro
Member
 
Total Posts:  47
Joined:  2012-05-20
 

Basically I am trying to edit the left side menu Here and apply classes to the spans for the root and sub categories. I tried using the template paths but they took me to a dead end.

Any help would be greatly appreciated!

Thanks,
Kevin DiGennaro

Edit: Sorry for the double post, I got an error saying I wasn’t authorized then they both showed up. Please feel free to delete one of these.

Thanks again,
Kevin DiGennaro

 
Magento Community Magento Community
Magento Community
Magento Community
 
prateekgupta
Guru
 
Avatar
Total Posts:  541
Joined:  2010-06-04
India
 

Hi,

Check catalog.xml, you can get fair idea where the files are being called, also dead end?? is template path hints are not showing? .

 
Magento Community Magento Community
Magento Community
Magento Community
 
kdigennaro
Member
 
Total Posts:  47
Joined:  2012-05-20
 

Thank you for the reply!
As far as the template paths go all I get is frontend/default/FPS/template/vertnav/left.phtml which is the extension I am using. 
The code calls for $this->getStoreCategories()) ?>. I think I need to chase down the source of this variable.

<div class="vertnav-container">
    <
div class="">
        <
h4 class="filterTitle"><?php echo $this->__('Filter By:'?></h4>
<?php $store_categories $this->toLinearArray($this->getStoreCategories()) ?>
<?php 
if ($count count($store_categories)): ?>
        
<ul id="vertnav">
<?php endif; ?>
<?php 
foreach ($store_categories as $i => $_category): ?><?php $class = array() ?>
<?php 
if ($count == 1): ?>
<?php $class[] 
'only' ?>
<?php 
elseif (! $i): ?>
<?php $class[] 
'first' ?>
<?php 
elseif ($i == $count-1): ?>
<?php $class[] 
'last' ?>
<?php 
endif; ?>
<?php 
if (isset($store_categories[$i+1]) && $this->isCategoryActive($store_categories[$i+1])) $class[] 'prev'?>
<?php 
if (isset($store_categories[$i-1]) && $this->isCategoryActive($store_categories[$i-1])) $class[] 'next'?>
<?php 
echo $this->drawOpenCategoryItem($_category0$class?>
<?php 
endforeach ?>
<?php 
if ($count): ?>
        
</ul>
<?php endif; ?>
    
</div>
</
div>

Any ideas?

Thanks,
Kevin DiGennaro

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top