Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • midhat Friend
    #931890

    Hi, I changed the structure of categories and now I have only one level (category without subcategory). Now my module "Browse Listings By Categories" no longer collapsible and constantly showing all categories. Is it possible to work as on the demo site (to be collapsible) with single level category?

    Regards, Midhat

    Luna Garden Moderator
    #932565

    Hi,

    I have tried on our end, it still works. It might be a JS error on your site show the list doesn’t collapse.
    Post your site URL, admin account and FTP account then I will check the problem on your site.

    midhat Friend
    #932624
    This reply has been marked as private.
    Luna Garden Moderator
    #933696

    Hi,

    I have fixed the issue on your site.
    Go to file:

    templates/ja_directory/html/mod_k2_tools/customcategories.php

    Find

    if (modK2ToolsHelper::hasChildren($row->id))
                {
                    $output .= '<li class="'.$liClass.'" ><a style="color: '.$color.'; border-color: '.$color.'" href="'.urldecode($link).'"><img src="'.$icon.'"  alt="'.$row->name.'" /><span class="catTitle">'.$row->name.'</span><span class="catCounter">'.$row->numOfItems.'</span></a>';
                    ja_k2_treerecurse($params, $row->id, $level + 1);
                    $output .= '</li>';
                    $i++;
                }
                else
                {
                    $output .= '<li class="'.$liClass.'" ><a href="'.urldecode($link).'"><i class="fa fa-check-circle" style="color: '.$color.';"></i><span class="catTitle">'.$row->name.'</span><span class="catCounter" style="color: '.$color.';">'.$row->numOfItems.'</span></a></li>';
                }
    

    change to:

    if (modK2ToolsHelper::hasChildren($row->id))
                {
                    $output .= '<li class="'.$liClass.'" ><a style="color: '.$color.'; border-color: '.$color.'" href="'.urldecode($link).'"><img src="'.$icon.'"  alt="'.$row->name.'" /><span class="catTitle">'.$row->name.'</span><span class="catCounter">'.$row->numOfItems.'</span></a>';
                    ja_k2_treerecurse($params, $row->id, $level + 1);
                    $output .= '</li>';
    
                }
                else
                {
                    $output .= '<li class="'.$liClass.'" ><a href="'.urldecode($link).'"><i class="fa fa-check-circle" style="color: '.$color.';"></i><span class="catTitle">'.$row->name.'</span><span class="catCounter" style="color: '.$color.';">'.$row->numOfItems.'</span></a></li>';
                }
              $i++;

    midhat Friend
    #933906
    This reply has been marked as private.
    midhat Friend
    #934251

    Now is OK. Thank You!

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 5 replies, has 2 voices, and was last updated by  midhat 8 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum