Prestashop | Override

<?php // /override/classes/Product.php class Product extends ProductCore

public static function getPriceStatic( $id_product, $usetax = true, $id_product_attribute = null, $decimals = 6, $divisor = null, $only_reduc = false, $usereduc = true, $quantity = 1, $force_associated_tax = false, $id_customer = null, $id_cart = null, $id_address_invoice = null, $id_address_delivery = null, $specific_price_output = null, $with_ecotax = true, $use_group_reduction = true, $id_country = null, $id_state = null, $id_currency = null, $group_reduction = null, $use_reduction = true, $reduction_type = false, $return_array = false ) // Get the original price using the parent method $original_price = parent::getPriceStatic( $id_product, $usetax, $id_product_attribute, $decimals, $divisor, $only_reduc, $usereduc, $quantity, $force_associated_tax, $id_customer, $id_cart, $id_address_invoice, $id_address_delivery, $specific_price_output, $with_ecotax, $use_group_reduction, $id_country, $id_state, $id_currency, $group_reduction, $use_reduction, $reduction_type, $return_array ); prestashop override

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. This is where PrestaShop Overrides come to the rescue

PrestaShop caches class indexes. Go to Advanced Parameters > Performance and click "Clear cache". return $original_price;

return $original_price;