Prestashop Override May 2026
// Append our custom text (only if not returning array) if (!$return_array) return $original_price . ' (Tax included)';
classes/Product.php has a method getPriceStatic() . prestashop override
Create /override/classes/Product.php
return $original_price;
PrestaShop caches class indexes. Go to Advanced Parameters > Performance and click "Clear cache". // Append our custom text (only if not returning array) if (
<?php // /override/classes/Product.php class Product extends ProductCore Performance and click "Clear cache". <
Introduction 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 PrestaShop Overrides come to the rescue.