How to change customer fields in admin ?
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
How to change customer fields in admin ?
Hello everybody!
I customize Laravel Aimeos admin panel and implement some kind of profile. Then each user who logged in to admin panel, he may see own profile and edit it.
I created own extension and did it well as described. For profile I copied Customer menu tab, I only changed it that user can edit only own data.
The question is: how to change fields configurations properly ? For example Last name I don't need to be required. and some other fields I need delete. I guess there must be some model of customer which I can extend or something like that..
I would be very thankful for any help!
Laravel Framework 5.8.26
aimeos-laravel 2019.04
PHP Version 7.2.19-1+ubuntu18.04.1+deb.sury.org+1
I customize Laravel Aimeos admin panel and implement some kind of profile. Then each user who logged in to admin panel, he may see own profile and edit it.
I created own extension and did it well as described. For profile I copied Customer menu tab, I only changed it that user can edit only own data.
The question is: how to change fields configurations properly ? For example Last name I don't need to be required. and some other fields I need delete. I guess there must be some model of customer which I can extend or something like that..
I would be very thankful for any help!
Laravel Framework 5.8.26
aimeos-laravel 2019.04
PHP Version 7.2.19-1+ubuntu18.04.1+deb.sury.org+1
Re: How to change customer fields in admin ?
If a field is required or not is only a matter of the "mandatory" CSS classes in the template. In the database, there are no fields requried besides id and email so you can leave it as is. Here you can see the Laravel users table extended by the Aimeos fields: https://github.com/aimeos/ai-laravel/bl ... stomer.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star