First category in lista lways expanding

  • Posts: 22
  • Thank you received: 0
13 years 6 months ago #17006

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.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #17018

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.

  • Posts: 22
  • Thank you received: 0
13 years 6 months ago #17029

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #17037

That's indeed not something yet handled properly by the system.
You can try to add the 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:
if($row->category_id==$cid){
							$found = $i;
							break;
						}

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

  • Posts: 22
  • Thank you received: 0
13 years 6 months ago #17051

Thx! That did the trick :-)

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

Time to create page: 0.058 seconds
Powered by Kunena Forum