laravel-woocommerce
laravel-woocommerce copied to clipboard
Multi-site configuration
The change is allowing to store multiple configurations in the /config/multisite.php. The current configuration is selected from the .env file.
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?
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.
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.
@mcpuishor I'm building this application to sync product data between two WooCommerce stores. Does your code support this?