How to change customer fields in admin ?

Help for integrating the Laravel package
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!
MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

How to change customer fields in admin ?

Post by MikaelNazarenko » 01 Jul 2019, 11:57

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

User avatar
aimeos
Administrator
Posts: 7865
Joined: 01 Jan 1970, 00:00

Re: How to change customer fields in admin ?

Post by aimeos » 02 Jul 2019, 08:43

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, Image give us a star

Post Reply