Override Module Prestashop (Hot)

/** * Add a completely new method (available to the module) */ public function myCustomMethod()

After saving, clear cache – the message appears automatically. This complete guide covers you need to safely override any module in PrestaShop 1.7 and 8.x. override module prestashop

/** * Override an existing method */ public function hookDisplayHeader($params) /** * Add a completely new method (available

public function hookDisplayShoppingCartFooter($params) $output = parent::hookDisplayShoppingCartFooter($params); if ($this->context->cart->getOrderTotal() > 100) $output .= '<p class="alert alert-success">You qualify for free shipping!</p>'; return $output; 100) $output .= '&lt