JulianoGomes Posted August 28, 2020 Share Posted August 28, 2020 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 More sharing options...
Matt75 Posted August 28, 2020 Share Posted August 28, 2020 Because you use 1.7.6.7 and Orders doesn’t use grid, only since 1.7.7.0 currently in beta. You can find how to do this for legacy here https://github.com/Matt75/displayordercarrier Link to comment Share on other sites More sharing options...
YiannisK Posted November 29, 2022 Share Posted November 29, 2022 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now