Jump to content

Module overriding mistery


Recommended Posts

Hello,

i've been digging documentation and forums to find a solution for module overriding in PS 1.5.x.

 

It's clear enough how to override classes, controllers and templates.

I also found an interesting Hack, by Julien BREUX, to override module main class.

 

https://gist.github.com/JulienBreux/2287709

 

The problem is that module overriding does not work.

Let's take, for example, paypal module.

 

I tried to override the controllers/front/sumbit.tpl

 

I put it in module/override/controllers/front/ directory.

I cleared cache.

Nothing.

 

Is it possible that according to the module, if the author did not implement correctly the overriding, it could work or not?

 

Thanks a lot.

M

Edited by manfield (see edit history)
Link to comment
Share on other sites

Hi, according to the documentation, there's a way to override the main module class, in your case the blocklayered.php file, and Julien Breux, in the example I wrote before gave the solution.

So I solved the Module overriding.

The problem remains for tpl, controllers and classes, for the module, so all the other elements.

According to the module (I mean the way the author coded the module) it could work or not, even if official PS documentation gives clear instructions on how to do.

 

Thanks for your answer.

Edited by manfield (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...