order status import

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!
akropivko
Posts: 36
Joined: 20 Jan 2021, 12:49

order status import

Post by akropivko » 16 Jun 2021, 07:31

Hi!
I need to implement order status changing based on .csv or .xml data from third-party system.
I guess it's about to import csv files using updateAsync() function from Payment/Delivery provider.
Could you please give me some step-by-step instruction what I should do to achieve this? What I've already understood from documentation I need to create a new Payment/Delivery provider with updateAsync() and then to create a new cron job to run this method periodically. Is it correct?
Or maybe this functionality already implemented but not documented yet?
Thanks!

Laravel 6.20.27
aimeos/aimeos-core 2020.10.24
PHP 7.4

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

Re: order status import

Post by aimeos » 18 Jun 2021, 05:33

Yes, you can use the already existing XML delivery service provider which implements the updateAsync method to update order status values: https://github.com/aimeos/aimeos-core/b ... #L134-L173

If that doesn't match your needs, you should implement a delivery service provider or decorator (if you already use a provider) yourself: https://aimeos.org/docs/latest/provider ... /delivery/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

akropivko
Posts: 36
Joined: 20 Jan 2021, 12:49

Re: order status import

Post by akropivko » 18 Jun 2021, 09:08

aimeos wrote: 18 Jun 2021, 05:33 Yes, you can use the already existing XML delivery service provider which implements the updateAsync method to update order status values: https://github.com/aimeos/aimeos-core/b ... #L134-L173
Is there any example of .xml file for order import to use with default configuration?

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

Re: order status import

Post by aimeos » 22 Jun 2021, 07:30

Unfortunately not. The whole XML file handling is only barely documented yet and we appreciate any help!
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply