OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Automatic Order Export

This topic contains 2 replies, has 2 voices, and was last updated by  paul4 7 years, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #31522

    paul4
    Participant

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

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

    Alex Puscas
    Participant

    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!

    #31524

    paul4
    Participant

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

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

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top