laravel-woocommerce icon indicating copy to clipboard operation
laravel-woocommerce copied to clipboard

Multi-site configuration

Open mcpuishor opened this issue 4 years ago • 9 comments

The change is allowing to store multiple configurations in the /config/multisite.php. The current configuration is selected from the .env file.

mcpuishor avatar Jul 24 '21 18:07 mcpuishor

Hi @mcpuishor, Thanks for creating pull request. Can you explain what's the benefit that user can get from your changes since they can simply change their store URL and other information from .env?

maab16 avatar Jul 24 '21 22:07 maab16

True, it's a simple procedure to change the connection data from the .env, however it becomes cumbersome when you have to constantly switch from a local dev to a staging to a production configuration. This allows a single point of change and data is stored in the app, in a configuration file, rather than having to pull it from the actual website every single time you have to switch. It's simply a matter of convenience to switch.

I am currently working on a project to integrate WooCommerce with Laravel and I found myself having to switch multiple times a day from a local setup to a remote setup, back and forth.

The ultimate goal is to be able to switch configuration at runtime to allow connections to multiple stores at the same time.

mcpuishor avatar Jul 25 '21 09:07 mcpuishor

Okay. Can you see this issue #12 and let me know what problem you faced here?

Currently I'm passing very busy schedule. I'll check your changes ASAP.

maab16 avatar Jul 29 '21 03:07 maab16

@mcpuishor I'm building this application to sync product data between two WooCommerce stores. Does your code support this?

jarno-peeters avatar Oct 06 '21 18:10 jarno-peeters