Categories display

  • Posts: 202
  • Thank you received: 13
1 week 3 days ago #365995

-- HikaShop version -- : 5.1.5
-- Joomla version -- : 5.2.4
-- PHP version -- : 8.2

Hi
I have created a custom field for categories of type Boolean. How can display the categories which this field is set to yes in a module ?

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

  • Posts: 83401
  • Thank you received: 13494
  • MODERATOR
1 week 3 days ago #365996

Hi,

There is no option to set this up.
The solution will be to :
- create a module instance of the type "HikaShop content module" via the joomla modules manager and configure it to display a listing of all the categories.
- develop a small plugin implementing the onBeforeCategoryListingLoad event:
www.hikashop.com/support/documentation/6...eCategoryListingLoad
In it, you can add a condition on that custom field to filter out the categories with no selected in that custom field.
This requires some basic PHP and MySQL skills.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum