简体   繁体   中英

How to import woocommerce products directly into the sql database?

I am importing products in woocommerce (csv file). For now, I have imported about 9000 references. I still have to import 60000. The interface is very slow (woocommerce->products->import csv). Is it possible to import the products directly into the database after converting the csv file to sql? Can someone tell me how?

Well. Here is my answer to my own question;-). I did tests by importing my products in JSON format using the woocommerce API. I followed this tutorial very well done: However, it does not solve my problem. Indeed, the API calls WC and WC calls the database. So it will not be faster.

And this is where my discovery of the day comes in: CORCEL. The link to the github repo:

Corcel is a PHP package that allows you to extract, manipulate or communicate easily (using CRUD operations) with the data of your wordpress site.

Since corcel communicates directly with the db without going through the wordpress box it seems to me really more effective (in theory... not tested yet).

So I will apply myself to create a custom interface with the awesome Laravel framework to directly manipulate my products in db.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM