Supermanzo Posted February 13, 2013 Share Posted February 13, 2013 I tried following what is written in this forum to have hints on how to accomplish this: on 1.5.3.1 block categories i'm trying to show only level 1 category and related subcategories example: home --shoes -----runners -----boots --clothes -----shirts -----pants when i'm inside shoes i want only to see shoes and related subcategories and not clothes or other categories at the same level as shoes. When i'm in a subcategory (lvl2) i want to see only the parent category (lvl1 parent cat (shoes)) and the others subcategory at the same level (lvl2(runner,boots)). Can anyone help me on how to do it? Thanks Link to comment Share on other sites More sharing options...
vivek tripathi Posted April 8, 2013 Share Posted April 8, 2013 Hi, In order to block category only to show current category from lv1 open file \themes\{THEMEfolder name}\js\tools\treeManagement.js if any theme installed or if defualt theme then open themes\default\js\tools\treeManagement.js Edit function function toggleBranch(jQueryElement, noAnimation) { if(jQueryElement.hasClass('OPEN')) closeBranch(jQueryElement, noAnimation); else openBranch(jQueryElement, noAnimation); } Replaced with function toggleBranch(jQueryElement, noAnimation) { closeBranch($('.OPEN'), noAnimation); if(jQueryElement.hasClass('OPEN')) closeBranch(jQueryElement, noAnimation); else openBranch(jQueryElement, noAnimation); } 1 Link to comment Share on other sites More sharing options...
CONetWebDesign Posted May 23, 2013 Share Posted May 23, 2013 Just to confirm - the solution above does not work. 1 Link to comment Share on other sites More sharing options...
kevin78 Posted December 12, 2013 Share Posted December 12, 2013 Hello i have v1.5.4 and his solution doesnt work... anybody has a solution please Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 13, 2013 Share Posted December 13, 2013 Hi. You need to determine the absolut parrent of the currently viewed category in 'blockcategories.php' and modifying the 'getTree' function get only the children of the said category. Regards.Robin.The CartExpert Team 1 Link to comment Share on other sites More sharing options...
kevin78 Posted December 13, 2013 Share Posted December 13, 2013 Yes but i dont know how to do it Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 16, 2013 Share Posted December 16, 2013 If you have no coding knowledge you will not be able to do the changes. You'll need to hire a coder to do so. Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
kevin78 Posted December 16, 2013 Share Posted December 16, 2013 Ok so i will look for a coder. That's why im here... 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now