Jump to content

Problem overriding blocklayered


Kaharo

Recommended Posts

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

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 by Kaharo (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...