Jump to content

How to edit block category


Recommended Posts

Hey,
I would like to edit category block in that way, that after clicking on category name (in my shop 2009, 2008...) it would be the same effect like after clicking on the tiny + which is before every cat. name. (it doesn't load subcategory page but just open category tree.)
478d365ba87d18c1.jpg
d1e12389420d461f.jpg

Link to comment
Share on other sites

You could use my module here to do this, but then the +/- buttons would disappear and only the links would work as you want. It would require modifications to have both the +/- buttons and links to work the same way. The following code in js/tools/treeManagement.js adds the click event:

//add a fonction on clicks on growers
$('ul.tree.dhtml span.grower').click(function(){
   toggleBranch($(this));
});



You need to add the same click event to the links in the category block.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...