Jump to content

Call module's function in core file (src/Adapter...) ?


Pierre Belin

Recommended Posts

Hi everyone,

I'm facing an issue in PrestaShop 1.7 ...

I'd like to modify one core file (/src/Adapter/Presenter/Cart/CartPresenter.php -> function present) to add a developed module function that I made myself. It changes some display on the template cart, customer's request.

  1. The fact is, since it's Symfony, I'm not longer able to call the function Module::isEnable. How do you call this function now ? What is the good use ?
  2. Then, how to you call the class ? I mean, since you don't do require(/modules/MYMODULE/mymodule.php) to call new Module() ?

Regards to everyone !

  • Like 1
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...