Prestashop Override Class Jun 2026

When the user installs your module, PrestaShop automatically moves that file to the root /override/ folder. When they uninstall it, PrestaShop removes it. Common Pitfalls & Best Practices

The naming convention is strict. Your class name must be the same as the core class, and it must extend the original class with the Core suffix.

Go to Advanced Parameters > Performance and click Clear Cache . prestashop override class

Locate original class – /classes/Product.php → method public static function getProductPrice(...) inside ProductCore .

Create override file: /override/classes/Product.php When the user installs your module, PrestaShop automatically

All overrides must be placed under the PrestaShop root’s /override/ folder, following the exact subpath of the original class.

Only override the specific methods you need. Don't copy the entire core file into your override; it makes maintenance a nightmare. Your class name must be the same as

<?php // /override/classes/Product.php