If two modules try to override the same core method, PrestaShop will throw an error during installation to prevent conflicts. Best Practices & Warnings

: Copy the original .tpl file from the core or module folder and place it in your theme's folder: /themes/your-theme/templates/[relevant-path]/file.tpl . Modify : Open the new file and edit the text directly. Prestashop in Depth: Overriding Cart class

PrestaShop is a powerful, open-source e-commerce platform known for its flexibility. However, every merchant eventually hits a limitation: a module doesn’t work exactly as needed, or a core feature behaves differently than desired. Modifying core files directly is a recipe for disaster (lost updates, security holes). This is where come to the rescue.

class ProductController extends ProductControllerCore

// Your code here