| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Where can i edit Left Category menu | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Where can i edit Left Category menu
Top menu has its own "top_menu.tpl" file but none for the side menu..
Where can i find/edit the Left Category menu?...
__________________
X-Cart 5 Business none |
|||||||
#2
|
|||||||
|
|||||||
Re: Where can i edit Left Category menu
bump.. i would like to replace it with a custom menu...
__________________
X-Cart 5 Business none |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Where can i edit Left Category menu
It depends on what you want to achieve.
\XLite\View\TopCategories is the widget that renders the Categories menu. Depending on the menu mode, it uses different templates from the "[xc5]/skins/default/en/categories/[mode]/" directories. However, I guess you just want add another block to the side bar. If so, you should create either a new template, or a new widget (the PHP class) and add the Code:
You can read more about the @ListChild tag here: https://x-cart.atlassian.net/wiki/display/XDD/Templater+lists "sidebar.first" is the "list" for the left side bar.
__________________
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 |
|||||||||
#4
|
|||||||
|
|||||||
Re: Where can i edit Left Category menu
thanks for the quick reply.. is there a way to pull the sub-categories? can someone please help me with this code..
Code:
__________________
X-Cart 5 Business none |
|||||||
#5
|
|||||||||
|
|||||||||
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:
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. |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|