View Single Post
  #5  
Old 03-19-2014, 05:15 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Where can i edit Left Category menu

Actually, it already can do this

You just need to switch the widget mode to "tree" by creating a custom module and decorating the "defineWidgetParams()" method in the \XLite\View\TopCategories class as follows:

PHP Code:
/**
     * Define widget parameters
     *
     * @return void
     */
    
protected function defineWidgetParams()
    {
        
parent::defineWidgetParams();

        
$this->widgetParams[static::PARAM_DISPLAY_MODE]->setValue(static::DISPLAY_MODE_TREE);
    } 

This should make the widget to generate HTML for the full categories tree (however, out of the box there are no CSS classes to display the tree properly, so you should add them yourself in your module).
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

Last edited by qualiteam : 03-19-2014 at 05:17 AM.
Reply With Quote