ssossossosso

Forums

Covering OroCommerce topics, B2B eCommerce trends, community updates and company announcements.

This topic contains 2 replies, has 2 voices, and was last updated by  paul4 4 months, 2 weeks ago.

  • Creator
    Topic
  • #3273

    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
  • #3289

    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!

    #3290

    paul4
    Participant

    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.