Jump to content

[PS 1.7.7] Overriding a module class used by another class


fedesib

Recommended Posts

Hi everybody,

I know that to override the main class of a module I should achieve something like this (simplified):

ROOT/override/modules/[module]/[module].php

But I need to override a class called by [module].php and included via another file (not directly defined in [module].php

 

In detail I would like to override the class MySQL.php which is defined in mystore/modules/ps_facetedsearch/src/Adapter/MySQL.php

The same question was also asked here: https://stackoverflow.com/questions/66710560/how-to-override-prestshop-1-7-7-module-classes

But with not answer. It is possible?

Thank you for your time,
Federica

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...