active class no longer applied in HikaShop Content Module

  • Posts: 27
  • Thank you received: 5
  • Hikashop Business
6 days 17 hours ago #366074

-- HikaShop version -- : 5.1.5
-- Joomla version -- : 5.2.4

Hi,
I've just realized that active items (main category + subcategory) are no longer attributed with "active" class.
Is it a new bug or something else has changed?

Thank you very much. Kind regards.

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
4 days 19 hours ago #366079

Hi,

This is still working fine for us on our end, and we didn't change anything for a while there so I'm not sure what it could be.
Could you provide a superadmin backend access in order to check things out via our contact form ?
www.hikashop.com/support/contact-us.html

The following user(s) said Thank You: bellaidea

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

  • Posts: 27
  • Thank you received: 5
  • Hikashop Business
3 days 8 hours ago #366128

Hi Nicolas,
thank you for your reply.
I've just sent a message containing credentials.
Thank you!
Regards

nicolas wrote: Hi,

This is still working fine for us on our end, and we didn't change anything for a while there so I'm not sure what it could be.
Could you provide a superadmin backend access in order to check things out via our contact form ?
www.hikashop.com/support/contact-us.html

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
2 days 12 hours ago #366147

Hi,

Thanks for the access.
I found what the problem is.
I thought you were using the "list" layout as it is usually the case with listings of categories in sidebars.
But you're actually using the "div" layout. And in that mode, there is indeed a problem with the children.
There is actually already code to support this, but there is a piece of code missing for the children categories.
I've added a patch on our end and confirmed that it now works on your test website, with the access you provided.
To get the patch on other websites, download the latest version of HikaShop on our website, install it on yours and you'll get it.

Note that the classes are hikashop_current_parent_category ( for the main categories ), and hikashop_current_subcategory ( for the children categories ).

The following user(s) said Thank You: bellaidea

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

  • Posts: 27
  • Thank you received: 5
  • Hikashop Business
1 day 22 hours ago #366159

Hi Nicolas,
thank you for your support.
As far as I can see, active (or current) classes are missing for hikashop_category_name items too. They should be active when directly selecteded or when a child is selected.
Am I wrong?

Thank you very much!

nicolas wrote: Hi,

Thanks for the access.
I found what the problem is.
I thought you were using the "list" layout as it is usually the case with listings of categories in sidebars.
But you're actually using the "div" layout. And in that mode, there is indeed a problem with the children.
There is actually already code to support this, but there is a piece of code missing for the children categories.
I've added a patch on our end and confirmed that it now works on your test website, with the access you provided.
To get the patch on other websites, download the latest version of HikaShop on our website, install it on yours and you'll get it.

Note that the classes are hikashop_current_parent_category ( for the main categories ), and hikashop_current_subcategory ( for the children categories ).

Last edit: 1 day 20 hours ago by bellaidea.

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
1 day 19 hours ago #366165

Hi,

I'm not sure what you mean.
If you're saying that the "active" and "current" classes are still missing, then yes, that's normal. As I said, the classes are hikashop_current_parent_category / hikashop_current_subcategory and not "active" / "current".
Or are you talking about something else ?

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

  • Posts: 27
  • Thank you received: 5
  • Hikashop Business
1 day 9 hours ago #366194

Sorry, I explained myself badly.
In my previous message "active" and "current" were adjectives, not classes names. :)
I meant that there is no distinction between a selected parent category and an unselected one, whatever the class to distinguish them. The class is always just "hikashop_category_name" (please find attached pics).
The distinction is only between selected children categories and an unselected ones.

nicolas wrote: Hi,

I'm not sure what you mean.
If you're saying that the "active" and "current" classes are still missing, then yes, that's normal. As I said, the classes are hikashop_current_parent_category / hikashop_current_subcategory and not "active" / "current".
Or are you talking about something else ?

Attachments:

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
19 hours 32 minutes ago #366196

Hi,

You need to look at the div around the whole category:
i.imgur.com/gXb3lLt.png
So, for example, if you want to change the span of the main category for the sub category currently selected, you can use:

.hikashop_current_parent_category .hikashop_category_name{ color: green; }

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

Time to create page: 0.070 seconds
Powered by Kunena Forum