Jump to content

[SOLVED] Override blocklayered.php


prestatent
 Share

Recommended Posts

Prestashop 1.5.4.1 on windows 7 running on localhost.

 

Hi

 

I need to override blocklayered.php. Where should I place the overrride code. It does not work when placed in the themes module directory. Should the override module be placed in a modules folder in the overrrides directory?

 

Thanks for any help.

 

Regards

David

Edited by prestatent (see edit history)

Share this post


Link to post
Share on other sites

Hi El Patron

 

Have just tried this but no joy. I only copied blocklayered.php to override/classes/module.

 

I also copied to override/classes/module/blocklayered to try, but again no joy.

 

I've looked at documentation on this, but any mention of overrides only relates to the the .tpl files and not the actual .php files for modules.

 

Thanks

Share this post


Link to post
Share on other sites

Update.

 

Do to there being a lack of documentation on this subject (none that I can find anyway), I have had to update the core blocklayered.php file to get the result I'm looking for. I'm a bit disappointed that there isn't a standard way to override modules in the same way as for classes and controllers.

Share this post


Link to post
Share on other sites

  • 2 weeks later...

Update.

 

Do to there being a lack of documentation on this subject (none that I can find anyway), I have had to update the core blocklayered.php file to get the result I'm looking for. I'm a bit disappointed that there isn't a standard way to override modules in the same way as for classes and controllers.

 

I have the same problem, and I'm quite as disappointed as you.. ;)

Also, in this case the documentation is not good, as you said.

Share this post


Link to post
Share on other sites

Thanks El Patron. However, there is still not a standard way to override modules. Looking at the post you have to clone a module and rename all references to it. Not exactly ideal but I suppose it will have to do.

 

Thanks.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More