Load products into Woocommerce

Asked

Viewed 522 times

2

Can anyone tell me a way to be loading Woocommerce products from an existing database.

Ex.: Woocommerce would only read the bank.

1 answer

2

If you want to ignore the Wordpress database, the Woocommerce account Hooks and filters that can be used for this. Of course you will lose many internal functions and will have to rewrite most, but it is possible yes.

The best option is to use Woocommerce normally with the Wordpress database and use its API to update your external database, either through a wpcron or through Hooks. The Woocommerce documentation is very well detailed and has hooks and filters for almost all functions.

Another option is to synchronize the two databases via xml or csv exports. Before the API was the only way to integrate Woocommerce with an ERP for example. It’s less work, but the system is more of a gambit than a suit. A good plugin for this is the Woocommerce csv import, available in the Wordpress repository.

The documentation of the API: API

Browser other questions tagged

You are not signed in. Login or sign up in order to post.