Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Flyout menus - Tree Control

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-03-2016, 08:40 AM
 
garyhoffmann garyhoffmann is offline
 

Advanced Member
  
Join Date: Sep 2009
Posts: 37
 

Default Flyout menus - Tree Control

I'm trying to figure out how to update an XC5 installation to use tree-like flyout menus.

This is my first XC5 implementation.

I read in one forum post:

Quote:
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:


/**
* 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


My problem is more fundamental - I don't know what's meant by creating a custom module. For example, where do I put it, what does my class inherit, what does it implement, etc.

Also, the above post states that there is no CSS out of the box to display the tree correctly (interesting). So, I'm wondering if anyone else has done this? Our customers tend to like the tree control over the flyout menus.

I've searched the forum on tree and flyout for X-Cart 5.

Thanks in advance.
Gary.

__________________
Gary
Reply With Quote
  #2  
Old 02-05-2016, 04:45 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Flyout menus - Tree Control

Hi Gary.
I haven't done any customization like that, I just wanted to let you know where to find instructions on how to create modules for your X-Cart store.
Check out our knowledge base here:
* http://kb.x-cart.com/display/XDD/Step+1+-+creating+simplest+module
* http://kb.x-cart.com/display/XDD/Developer+docs

Good luck there.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:12 AM.

   

 
X-Cart forums © 2001-2020