- Posts: 240
- Thank you received: 13
Categories display
1 year 8 months ago #365995
by khashiz
Categories display was created by khashiz
-- 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 ?
-- 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.
1 year 8 months ago #365996
by nicolas
Replied by nicolas on topic Categories display
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.
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.055 seconds