How to Import customer XML?

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!
dburucu
Posts: 11
Joined: 01 May 2024, 12:00

How to Import customer XML?

Post by dburucu » 02 Jan 2025, 00:33

What is the difference between “User” and “Customer”?

How can I import existing customers?

I have the following packages/xxxx-theme/config/controller.php:

Code: Select all

return [
    'jobs' => [
        'customer' => [
            'export' => [
                'csv' => [
                    'location' => 'storage/export/customer'
                ],
            ],
            'import' => [
                'xml' => [
                    'location' => 'storage/import/customer/1/test.xml'
                ],
            ],
        ],
        'order' => [
            'export' => [
                'csv' => [
                    'location' => 'storage/export/order'
                ],
            ],
            'email' => [
                'payment' => [
                    'pdf' => false
                ],
                'delivery' => [
                    'pdf' => false
                ],
            ],
        ],
    ],
];
storage/import/customer/1/test.xml is the sample XML file from https://aimeos.org/docs/2024.x/cronjobs ... ml-import/

There are no errors, but no customers are imported either.

Aimeos: 2024.04.*
Laravel: 11.0
PHP: 8.2

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

Re: How to Import customer XML?

Post by aimeos » 03 Jan 2025, 11:46

dburucu wrote: 02 Jan 2025, 00:33 What is the difference between “User” and “Customer”?
The Laravel "users" table is used for the Aimeos customer domain when using Laravel. In Aimeos, we are always speaking about "customers".
dburucu wrote: 02 Jan 2025, 00:33 How can I import existing customers?
I have the following packages/xxxx-theme/config/controller.php:
Don't change the location if you don't need it because it's the path relative to the fs-import virtual filesystem which is mapped to ./storage/import/ in your installation. Then, place your customer XML file into the ./storage/import/customer/default/ directory and run the artisan command for importing the customer XML files:

Code: Select all

php artisan aimeos:jobs customer/import/xml
dburucu wrote: 02 Jan 2025, 00:33 Aimeos: 2024.04.*
Upgrade to 2024.10 LTS because earlier version are not supported any more and don't receive bugfixes and security updates.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply