Override Module Prestashop Jun 2026
If a module receives an update from the developer and they change the logic inside a method you overrode, your override will still run the you copied. You are responsible for merging new updates from the module into your override file manually.
: Append Override to the original class name. For example, to override ps_shoppingcart , name the class Ps_ShoppingcartOverride . Example : override module prestashop
The PrestaShop override system is a powerful architectural feature that allows developers to modify core behaviors and module functionalities without altering the original source files . This ensures that your customizations remain intact even after software updates, as long as the underlying core logic doesn't fundamentally change. PrestaShop Developer Documentation +1 Core Concepts of Overriding In PrestaShop, an override works by taking advantage of the platform's object-oriented structure and its class auto-loading mechanism. When a class is requested, the system first checks the If a module receives an update from the
This complete guide covers you need to safely override any module in PrestaShop 1.7 and 8.x. For example, to override ps_shoppingcart , name the
/override/modules/mymodule/controllers/front/DefaultController.php
return $output;
: Modules intended for the PrestaShop Addons Marketplace are generally forbidden from using overrides.