Jump to content

Edit History

daniele dexter

daniele dexter

22 hours ago, Inform-All said:

You can actually override this file, but do keep in mind that you need to check if everything is still correct upon every Prestashop or module update.
The override is not on a theme / template file that's why it's not located on the position you tried.


You override should be as the following: 

/override/modules/nrtmegamenu/NrtMegaBrandClass.php

Please read the corresponding docs here: https://devdocs.prestashop.com/1.7/modules/concepts/overrides/#override-a-module

I did as directed in the guide, but it doesn't seem to have any effect.

I put the file in the path, added the class extension and cleaned the cache.

Is there something I did wrong?

I am attaching an image of the route.

Here how I extended the class: class NrtMegaBrandClassOverride extends NrtMegaBrandClass

percorso.JPG

daniele dexter

daniele dexter

21 hours ago, Inform-All said:

You can actually override this file, but do keep in mind that you need to check if everything is still correct upon every Prestashop or module update.
The override is not on a theme / template file that's why it's not located on the position you tried.


You override should be as the following: 

/override/modules/nrtmegamenu/NrtMegaBrandClass.php

Please read the corresponding docs here: https://devdocs.prestashop.com/1.7/modules/concepts/overrides/#override-a-module

I did as directed in the guide, but it doesn't seem to have any effect.

I put the file in the path, added the class extension and cleaned the cache.

Is there something I did wrong?

I am attaching an image of the route.

Here how I extended the class: class NrtMegaBrandClassOverride extends NrtMegaBrandClass

×
×
  • Create New...