Jump to content

Hook is not calling on Cart rule form in admin panel


dhiru027

Recommended Posts

I am working on Prestashop 1.6.1.3 and developed a module which displays some extras fields on cart rule form (under information tab).

Now, I am trying this module on Prestashop 1.6.1.5 version but here my fields are not displaying on cart rule form in admin panel.

Below is code to render fields:

 

function install() {
    if(!parent::install() || !$this->registerHook('displayAdminCartRulesForm')) {
       return false;
    }
}

function hookDisplayAdminCartRulesForm() {
     return 'TPL file for my custom form fields';

 

The above code is written in my module file. I am not able to understand why the above hook is proper calling in PS v1.6.1.3 but not PS v1.6.1.5 onwards.

Can anyone share your solution of how can I resolve this issue? Or what is the wrong in above code?

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...