Module Override — Prestashop
Delete /var/cache/dev/class_index.php (and /var/cache/prod/ in production).
PrestaShop is one of the most flexible e-commerce platforms available, largely thanks to its modular architecture. However, there comes a time in every developer’s journey when a module doesn’t quite do what you need. The core logic is 90% perfect, but you need to tweak a method, add a filter, or change a database query. prestashop module override
Change the behavior of the module's front-end or back-office controllers. Delete /var/cache/dev/class_index
This means you can completely replace a module’s class by placing your version in the /override/modules/ directory. add a filter
To override a module's main class, you must create a new PHP file that extends the original class and uses a specific naming convention. Original Class: Ps_Shoppingcart Override Class: Ps_ShoppingcartOverride
/override/modules/[module_name]/controllers/admin/[controller_name].php .