...
Classes and controllers are usually built following a certain norm. Here is the the Product class and controller:
...
The file can be placed in either of these locations:
/override/classes/Product.php
/modules/my_module/override/classes/Product.php
Overriding a controller
In order to override the ProductController
class, your file needs to be called ProductController.php
and must feature a ProductController
class that then extends ProductControllerCore
class.
The file can be placed in either of these locations:
/override/controllers/front/ProductController.php
/modules/my_module/override/controllers/front/ProductController.php
Overriding other behaviors
...