Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2.3.4 Bootstrap Category Tree Display


Recommended Posts

Hi,

 

I am trying to modify the category tree to display an icon before the category name and also if the category has sub-categories then display an icon to the right of the category name.

 

Now I have managed to add the icons before and after but not entirey sure how to change the class to only display the fa-plus-square icon if subcats exist.

 

I did also notice that after adding the code below that the hover effect stopped working on the cats. I would also like the second icon to align to the right so they are lined up nicely to the right side of the box.

    var $root_category_id = 0,
        $max_level = 0,
        $root_start_string = '<li class="fa fa-angle-right fa-fw" style="display: inline-block;"></li>',
        $root_end_string = '<li class="cats fa fa-plus-square-o fa-fw" style="display: inline-block;"></li>',
        $parent_start_string = '',
        $parent_end_string = '',
        $parent_group_start_string = '<ul>',
        $parent_group_end_string = '</ul>',
        $parent_group_apply_to_root = false,
        $child_start_string = '<li>',
        $child_end_string = '</li>',
        $breadcrumb_separator = '_',
        $breadcrumb_usage = true,
        $spacer_string = '',
        $spacer_multiplier = 1,
        $follow_cpath = false,
        $cpath_array = array(),
        $cpath_start_string = '',
        $cpath_end_string = '';

Any help would be appreciated.

 

Mark

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...