Hi,
I'm trying to override PS module ImageSlider to add a custom field (to be able to change text colour, just a boolean for dark or light, I'll try colour picker later! 😅 )
I added a folder ps_imageslider in override > modules, then a ps_imageslider.php where I did the override of all the functions I was interesting in. As I couldn't manage to just override part of the functions and call parent function I copied-pasted the complete functions:
- installSamples()
- createTables()
- _postProcess()
- getSlides()
- renderAddForm()
- getAddFieldsValues()
This is working (adding a new column to table in database, setting field in configuration page, getting this new value from template, etc.)
But when I update the field from the configuration page and click save, nothing is saved. I managed to make it work by modifying the original object model Ps_HomeSlide.php file (adding to it a new property) but I would like to be able to override that file instead of making the change directly in the original module.
Any help will be really appreciated, I can be more specific in the modifications I did if it can help.
Thanks in advance!