Jump to content

How to sync my ERP with Prestashop


Recommended Posts

Hi guys,

I'am a developer of an ERP and I would like to know how integrate prestashop with my ERP.

I would like that at the moment of generate a sale in prestashop, the sale order will be created in my ERP.

In the same way, the stock discount the quantity when i invoicing the sale.

I appreciate all the information that you can give me and sorry for my english.

 

Regards

Link to comment
Share on other sites

Hi,

I'm using a module that I attached to hooks. You can see the list of hooks here : https://devdocs.prestashop.com/1.7/modules/concepts/hooks/list-of-hooks/.

When an action occured (let's say order is completed), my module callback corresponding to the said hook is called.

I also developed a small API in my ERP that I can use in my callback methods.

Example :

Order payment is confirmed : hook actionPaymentConfirmation

In my module, method hookActionPaymentConfirmation : call ERP api to notify of a new sale.

 

If you don't know what hooks are you should take a look at Prestashop's doc for developers. https://devdocs.prestashop.com/1.7/modules/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...