Reaction with erp?


#1

Hi everyone,

How could I integrate reaction with ERP?

example, when a customer makes a purchase on reaction shop, that should be a sales order. Then I will to pass this sales order to my erp which I will auto-generate a PO to my dropship merchant. Any tips how to make this worked?

Thanks.


#2

We have three kind of event hooks that can make this kind of integration easier:

  • Method hooks -> on all Meteor methods, ie run hook on “payment/submitPayment”
  • Collection hooks -> on update of “Orders” collection hooks -> any time a collection is updated
  • Event hooks -> predefined hooks with existing functions or method, for example: ReactionCore.Hooks.Events.run("onCoreInit", this);

With these methods we can intercept data and return a modified objects if we need to, for example the Sales order could be modified based on data returned by the ERP.