ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

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

  • Creator
    Topic
  • #32620
    adriwan_kenoby
    adriwan_kenoby
    Participant

    Hi OroTeam,

    I would like to create a user associated to the MagentoUser.

    I think it is possible to customize the oro:cron:integration:sync command.

    How could I do ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #32934
    Artem Liubeznyi
    Artem Liubeznyi
    Oro Core

    Hi Adriwan,

    You should add a new API request that will create/update OroCRM users with data from Magento users. Please refer to our API documentation and use any other entity sync as an example.

    #32935
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi

    As I understand, you want to sync Magento ‘admin_user’ table into Oro, right? If yes, then you need to research how import works. You should create a new job, a reader, a processor (it contains data converter, strategy and entity name), and a writer. Here is an example. These components connect to the Magento bridge, retrieve information, convert/process it (optional) and save to the database. Afterwards, create an API to access Magento users, update api.xml and wsdl.xml.

    #33347
    adriwan_kenoby
    adriwan_kenoby
    Participant

    I would like to override the Magento sync process.

    For example I would like to create an Account per group which belong the magento_customer and for each magento_customer, like it already is, a contact.

    Could you provide me more informations about how can I do ?

    #33373
    msulima
    msulima
    Oro Core

    Hi. To achieve that you should create new bundle that will contain all customizations. That bundle should extend original MagentoBundle from crm.
    Then you should override logic in:
    channels.yml – add configuration for entity entity that you need to addinf it to the new channel. It will add new connector in the integration.
    processes.yml – you should add new process that should process new entity and disable old, that you want to override
    batch_jobs.yml – add configuration for processing import of new entity

    Of course on Magento side should be available API for needed entity. And you should override Oro\Bundle\MagentoBundle\Provider\TransportSoapTransport and add to it new method, that should be called for importing data of new entity.

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

You must be logged in to reply to this topic.