WOOCOMMERCE - Integrate with database

0

I needed to integrate Woocommerce with its own database (different from the wordpress structure) to integrate into an ERP software. I know I have the REST API, but I have no idea how to do this, I researched but did not have a light at the end of the tunnel. If someone can put there an example of what a simple product integration with a database with (name, code, type, price, inventory [example only] would be).

    
asked by anonymous 07.08.2016 / 17:49

1 answer

1

Hello

The interesting thing is through their documentation, you get the information that is returned in Json. And on your system you will receive, do this Json treatment by feeding a class for example. Then you map eCommerce information to your bank's data! Your question is a bit broad, but advice for your situation would be following the steps below:

1 - Check and implement a class to access the API 2 - Treat the return information that is in Json 3 - Map your bank data with API return 4 - The control to save the information you can do by some configuration file or using the WebHooks that the API itself makes available!

Here is the link to the documentation I use, at first I had to read it several times until it became clear how my system works with WooCommerce link

    
18.05.2018 / 22:38