Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4783 by roasted-toast
16 Oct 2017, 10:42

I've installed the Aimeos package on top of an existing Laravel 5.4 app and I need to user different column names.
This app uses 2 specific columns names for the user's first and last name:

Code: Select allfirst_name

Aimeos uses different columns:

Code: Select allfirstname

Accessing the Aimeos backend shows empty fields for the customers page:


Same for phone, we have:

Code: Select alloffice_number

When aimeos uses:

Code: Select alltelephone

Another problem is that the address, postal code and city columns are being used on a different table (companies, linked with a companies.user_id column).

What would be the best workaround for me to use the existing records inside the ecommerce package without having to duplicate them into the aimeos fields?

Any advice would be most welcome, thanks.
#4784 by aimeos
16 Oct 2017, 14:44
You can change the SQL statements for retrieving the data or even replace the Laravel implementation of the customer manager to update tables with depending information (address, company, etc.). This thread explains how: