Override Prestashop -

Goal: Add a new variable to product page.

return parent::install() && $this->installOverrides();

die('My override loaded'); Or check in class_index.php : override prestashop

grep "YourClassName" /var/cache/prod/class_index.php If you tell me (e.g., change payment fee, add product field, modify order status logic), I can give you a precise working code example.

public function install()

public function getPackageShippingCost($id_carrier = null, $use_tax = true, Country $default_country = null, $product_list = null, $id_zone = null) // Get original cost $originalCost = parent::getPackageShippingCost($id_carrier, $use_tax, $default_country, $product_list, $id_zone); // Apply custom logic (e.g., free shipping over $100) if ($this->getOrderTotal(true, Cart::ONLY_PRODUCTS) > 100) return 0; return $originalCost;

/modules/mymodule/ /override/ /classes/ Cart.php /controllers/ /front/ ProductController.php mymodule.php Then in mymodule.php : Goal: Add a new variable to product page

/override/controllers/front/ProductController.php