MostofaBD Posted June 5, 2020 Share Posted June 5, 2020 Hello, - I made a custom field `field_custom` to `{prefix}_product` tables and Product ( ObjectModel ) classes. How could I, add this `field_custom` searchable and also available to layered navigation filter or integrate with module ps_facetedsearch ? for reference i have added image as attachment - is there any hook available for extending this functionalities? - if no hook available, is there code fixing solution available there? My steps for already , trying to catch the solution: - modified in ps_facetedsearch.php , in function rebuildLayeredStructure() added field_custom to {prefix}_layered_category tables `type` field enum type value - in function , buildLayeredCategories() added another conditions layered_selection_field_custom_slider in $sqlInsert - in src/Filters/Block.php added new switch case field_custom and made a function getFieldCustomRangeBlock() now i stuck here. any help will be appreciated. thank you. Link to comment Share on other sites More sharing options...
MostofaBD Posted June 18, 2020 Author Share Posted June 18, 2020 Thank you i solved this myself. Link to comment Share on other sites More sharing options...
LamineDistro Posted August 12, 2020 Share Posted August 12, 2020 hey Mostafa, hope ur doing well, im facing a similar issue. but in my case i need to customize the sql request any idea? Link to comment Share on other sites More sharing options...
Minsky_ae Posted August 13, 2020 Share Posted August 13, 2020 Hi @MostofaBD, Good to read that you solved your problem, it will be nice to share what you did so it might help other 1 Link to comment Share on other sites More sharing options...
MostofaBD Posted August 13, 2020 Author Share Posted August 13, 2020 Thank you, for query , i provided the file of ps_facetedsearch with attachments. before install and enable this plugin you have to add two custom fields km and immatriculation_year and put some data there. on products table and don't forget to rename the previous ps_facetedsearch to see in action to take side effects. also don't forget to clean cache , indexing the product etc. ps_facetedsearch.zip 3 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now