Jump to content

How to add a column in admin product grid?


R4xx4r

Recommended Posts

Hello and good morning,

After I tried it for several hours without any success, Do you guys maybe have an hint or solution for my problem?

 

What I wanna achieve:
I have products whith the same name (different reference) which are different by some features and the customer wants an extra column in the product grid so he knows which one is the correct before he click on the link. ( I know normally you would make variants, but thats not an option for this customer ...)

 

What I tried:

  • hookActionAdminProductsListingFieldsModifier
    • but I didnt get any output if i dump params or die(); so it seems that this hook is not executed, or at least its not executed as i expect it
  • I tried the FormBuilderModifier hook this: https://github.com/PrestaShop/demo-cqrs-hooks-usage-module/blob/master/ps_democqrshooksusage.php 
    • just with the hook actionProductFormBuilderModifier
    • also no dump and die if I call the product listing (for customer it works)
  • manipulate core
    • like: 
    • but here i also had some troubles and to be honest im not a fan of manipulating core files, for things like adding a simple colum

How would you solve this task?

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