Jump to content

hook action order grid not work in prestashop 1.7


Recommended Posts

Hi, on my custom module i followed  this documentation steps for add columns on customer grid, it works, so i tried to replicate for the order grid but nothing happens.
Prestashop version: 1.7.6.7

 public function install()
    {
        return parent::install() &&
            ...
            $this->registerHook('actionOrderGridDefinitionModifier') &&   \\ this not works
            $this->registerHook('actionCustomerGridDefinitionModifier') && \\ this works
           ...
    }



    public function hookActionCustomerGridDefinitionModifier(array $params)
    {
        ...
    }

    public function hookActionOrderGridDefinitionModifier(array $params)
    {
        ...
    }

 

Link to comment
Share on other sites

  • 2 years later...

I try to create a custom module for showing a column in the Orders list in the admin backend and I'm having the same issue.

I'm using 1.7.8.7 so the `actionOrderGridDefinitionModifier` hook should be working already.

I tried to use some of your code @Matt75but I couldn't make it work. My module can be found at https://github.com/yiannis54/ps_order17vat

Can someone help? Thanks in advance.

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