Jump to content

how i can remove hook in prestashop?


Recommended Posts

    public function install()
{
    if (parent::install()===false) {
        return false;
    }

    if ($this->registerHook('actionValidateOrder') == false) {
        return false;
    }
    if ($this->registerHook('actionObjectOrderSlipAddAfter') == false) {
        return false;
    }
    $this->saveDefaultConfig();
    // replace some a part of tpl file
    require_once(_PS_MODULE_DIR_ . "ba_prestashop_invoice/includes/helper.php");
    BAInvoiceHelper::configOldTplFile();
    return true;
}

during the installation of a module it inserts these elements in the hook, I do not know how I can delete it? because i get this error livraison
Fatal error: Uncaught Error: Call to undefined method OrderInvoice::getDeliveryNumberFormatted() ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...