- Posts: 22
- Thank you received: 0
First category in lista lways expanding
- Nikajoloem
-
Topic Author
- Offline
Less
More
15 years 4 months ago #17006
by Nikajoloem
First category in lista lways expanding was created 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
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.
15 years 4 months ago #17018
by nicolas
Replied by nicolas on topic Re: First category in lista lways expanding
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.
- Nikajoloem
-
Topic Author
- Offline
Less
More
- Posts: 22
- Thank you received: 0
15 years 4 months ago #17029
by Nikajoloem
Replied by Nikajoloem on topic Re: First category in lista lways expanding
Please Log in or Create an account to join the conversation.
15 years 4 months ago #17037
by nicolas
Replied by nicolas on topic Re: First category in lista lways expanding
That's indeed not something yet handled properly by the system.
You can try to add the code:
in the file components/com_hikashop/category/tmpl/listing_list.php
right after the code:
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;
}
}
}
right after the code:
Code:
if($row->category_id==$cid){
$found = $i;
break;
}
Please Log in or Create an account to join the conversation.
- Nikajoloem
-
Topic Author
- Offline
Less
More
- Posts: 22
- Thank you received: 0
15 years 4 months ago #17051
by Nikajoloem
Replied by Nikajoloem on topic Re: First category in lista lways expanding
Thx! That did the trick
Please Log in or Create an account to join the conversation.
Time to create page: 0.189 seconds