Kaharo Posted April 11, 2016 Share Posted April 11, 2016 Hello, I want to override the blocklayered module, but it looks like it is not working... I changed the class declaration from class BlockLayered extends Module {to class BlockLayeredOverride extends BlockLayered { in the blocklayered.php file, and then added the new file in /override/modules/blocklayered/I deleted the class_index.php as asked, but it still did not work.Any idea ?Thanks for you help. Link to comment Share on other sites More sharing options...
tuk66 Posted April 11, 2016 Share Posted April 11, 2016 Are you doing it PS 1.6.1.x? http://build.prestashop.com/howtos/module/how-to-override-modules/ Link to comment Share on other sites More sharing options...
Kaharo Posted April 12, 2016 Author Share Posted April 12, 2016 (edited) Yes, the version I use is 1.6.1.4. I saw this tutorial before and I tried to apply it, but it still did not work...I red somewhere that is was impossible to override the main .php file of a module, is it still the case ? Do I have to create a new module ? EDIT : It seems like the override works, but the modifications I made are ignored ? I kept all the code from the source module, and just changed a bit some functions. Can someone help ? Edited April 19, 2016 by Kaharo (see edit history) Link to comment Share on other sites More sharing options...
Kaharo Posted May 3, 2016 Author Share Posted May 3, 2016 I fixed my problem somehow. Presatshop used to see my override, but did not take it into account. It was installed in my host (planet hoster) with softacullous, which installed it in a strange way. I installed it by myself and then it worked perfectly. I did not find where the problem really was but it's working. 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