override prestashop

Or check in class_index.php :

parent::initContent(); // Add custom data to template $customDiscount = $this->computeCustomDiscount($this->product); $this->context->smarty->assign('custom_product_discount', $customDiscount);

This way: