Wordpress Multisite + Woocommerce

2019-09-05 22:02发布

问题:

I have an issue regarding Woocommerce and Wordpress, I would like to use the same product library on all the sites that i create in my multi-site. all the sites will have the same products. How can i solve this?

if i check the Woocommerce information site they say that this is not a standard feature and it would not work like this for multi-site. I have tried both with Woocommerce and MarketPress, none off them work is i want them to do in the multi-site feature.

Have anybody solve this issue ?

BR Mtz

回答1:

It's not possible as far as I know. WordPress Multisite creates seperate databases per site you create. So all the products will be in their own database from the website it was created in.

I think you should consider building a custom mechanisme that fires from a cron-job and will copy all the products (and variations, images, meta) from a parent site to all the subsites.

But this won't be easy, and is not simple code answer for this.