Thursday, June 30, 2022

[FIXED] How to add new field to admin customer form in Prestashop 1.6

Issue

Good evening,

I want to add new field to admin customer form. There where I can display the customer preferences. Is there any hook ? Or I need to override a controller (which) ?

Kind regards


Solution

  1. Alter customer table to add new field
  2. override classes/customer.php to add new definition and variable
  3. override controllers/admin/admincustomercontroller.php
  4. override auth or myaccount on front controller


Answered By - Mahdi Shad
Answer Checked By - Candace Johnson (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.