Jump to content

[MODULE] Show group in customer list PS v1.2 - +1.7.7./ 8


shacker

Recommended Posts

This module allows you to add a new column in the list of customers, showing the associated group and being able to filter by it.

Compatible from PrestaShop 1.7.7.x>

 

show-group-in-customer-list-ps-177x.jpg

 

 

 

groupfilter.zip 

groupfilter.zip v1.1

groupfilter.zip v1.2

https://catalogo-onlinersi.net/en/home/515-show-group-in-customer-list-ps-177x.html

prev.jpg

Edited by shacker (see edit history)
  • Like 1
  • Thanks 2
Link to comment
Share on other sites

  • 5 months later...

Nice, thank you.

You made a mistake in the install > registerHook :

return parent::install() && $this->registerHook('header') && 
	$this->registerHook('backOfficeHeader') && 
	$this->registerHook('actionOrderGridQueryBuilderModifier') && // It's not Order, it's Customer
	$this->registerHook('actionOrderFormBuilderModifier') &&  // Why ?
	$this->registerHook('actionOrderGridDefinitionModifier');  // It's not Order, it's Customer

It should be :

return parent::install() && $this->registerHook('header') && 
	$this->registerHook('backOfficeHeader') && 
	$this->registerHook('actionCustomerGridQueryBuilderModifier') &&
	$this->registerHook('actionCustomerGridDefinitionModifier');
Link to comment
Share on other sites

  • 3 weeks later...
  • shacker changed the title to [MODULE] Show group in customer list PS +1.7.7./ 8
On 12/14/2022 at 2:11 PM, Myo said:

Nice, thank you.

You made a mistake in the install > registerHook :

return parent::install() && $this->registerHook('header') && 
	$this->registerHook('backOfficeHeader') && 
	$this->registerHook('actionOrderGridQueryBuilderModifier') && // It's not Order, it's Customer
	$this->registerHook('actionOrderFormBuilderModifier') &&  // Why ?
	$this->registerHook('actionOrderGridDefinitionModifier');  // It's not Order, it's Customer

It should be :

return parent::install() && $this->registerHook('header') && 
	$this->registerHook('backOfficeHeader') && 
	$this->registerHook('actionCustomerGridQueryBuilderModifier') &&
	$this->registerHook('actionCustomerGridDefinitionModifier');

thanks

Link to comment
Share on other sites

44 minutes ago, shacker said:

v1.1 - solved issue with hooks

Hi, please redownbload the new version

Thank you for the update, I downloaded the latest version and now customer group coulumn is being showed, however, no results are coming if non of the groups selected, and also if a customer belongs to group 1 and group 2 it only brings group 1 results, group 2 comes empty. Is this expected?

Many thanks

Link to comment
Share on other sites

  • 1 month later...
  • shacker changed the title to [MODULE] Show group in customer list PS v1.2 - +1.7.7./ 8

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