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
Hello,

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
last_name


Aimeos uses different columns:

Code: Select allfirstname
lastname


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

Image

Same for phone, we have:

Code: Select alloffice_number
mobile_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:
https://aimeos.org/help/laravel-package-f18/override-ext-ai-laravel-t1135.html