Skip to main content

First category in lista lways expanding

More
15 years 4 months ago #17006 by Nikajoloem
Hi,

I can't seem to get the layout of the category listing (in a module position) right:

The first category always automatically expand, even when a subcategory from another category is chosen.

How can I make sure the chosen sub-category remains checked?

kind regards,
Nikajoloem

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #17018 by nicolas
Could you give a link to that page so that we can see the problem ?

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #17029 by Nikajoloem

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #17037 by nicolas
That's indeed not something yet handled properly by the system.
You can try to add the code:
Code:
if(!empty($row->childs)){ foreach($row->childs as $child){ if($child->category_id==$cid){ $found = $i; break 2; } } }
in the file components/com_hikashop/category/tmpl/listing_list.php
right after the code:
Code:
if($row->category_id==$cid){ $found = $i; break; }

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #17051 by Nikajoloem
Thx! That did the trick :-)

Please Log in or Create an account to join the conversation.

Time to create page: 0.189 seconds
Powered by Kunena Forum