Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums OroCommerce Automatic Order Export

This topic contains 2 replies, has 2 voices, and was last updated by  paul4 1 year, 6 months ago.

  • Creator
  • #31522


    Anyone had experience developing automatic order exports in csv to a remote ftp folder?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #31523

    Alex Puscas

    Hi Paul!

    To create such an export automation, you can follow these steps:

    1. Create a new batch configuration following this, configuring a new batch job for the order export. You can also read this if you are not sure how to do it.

    2. Following job documentation and example:

    – Create a new Cron Command class, implementing ContainerAwareInterface and CronCommandInterface
    – Import the Symfony\Component\DependencyInjection\ContainerAwareTrait trait
    – In the execute() method:
    – Get the service “@oro_importexport.handler.export” from the container
    – Call the getExportResult() on the export handler with the batch job name you created earlier:

    Follow example of export handler usage!

    Fell free to ask for further help if you are stuck!



    Thats brilliant thanks, I’ll see if I can get this working.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No