Add new field to customer table!!!!

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
joemons
Posts: 4
Joined: 27 Apr 2019, 09:34

Add new field to customer table!!!!

Post by joemons » 27 Apr 2019, 10:01

Hi, I am trying to add new field to customer (users - I am using laravel) table - Chamber of Commerce number (COC) alongside with existing VAT ID.

I read this forum and there are several topics regarding this, most of them are suggesting extending managers and items, which I find as an overkill for such a common thing (and I am also getting "AccessDeniedHttpException").

You also mentioned this can be done by "reference attribute items via the list table".
Can you please give me more information what does it mean exactly?

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

Re: Add new field to customer table!!!!

Post by aimeos » 29 Apr 2019, 09:04

The easiest way is to store that information as customer property in the users_property table. You can manage that information in the customer panel of the admin interface.

If customers should enter this value in the checkout process, the easiest way is to extend the customer item/manager and the order address item/manager.

We will see how we can store arbitrary customer properties easier in the future during the checkout process.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply