return $price;
Create override file: /override/classes/Product.php prestashop override class
Use overrides only as a last resort. If you must use them, create a dedicated module that programmatically writes the override files during installation, rather than committing them directly – this improves upgrade management. Report prepared for: PrestaShop Developers & Technical Architects Document version: 1.0 Last updated: 2025 prestashop override class
<?php // /override/classes/Product.php class Product extends ProductCore prestashop override class
Write the override: