Virto Commerce offers a powerful feature that allows you to configure multiple stores with multiple domains on the same environment. This means you can build and manage different websites for various brands or business entities using a single platform and codebase.
In this blog post, we will walk you through the steps to set up and configure multiple stores with their own domain names, enabling you to efficiently manage content, marketing activities, and orders for each store.
For the demo purpose, I use B2B Theme with different presets in default\config\settings_data.json
file.
Prerequisites:
Before proceeding with the configuration of multiple stores, make sure you have completed the following prerequisites:
- Deploy the Virto Commerce Platform and Storefront using the Virto Commerce documentation.
- Configure the shared cms-content folder between the Storefront and Platform components.
- Set up and configure languages, currencies, and other relevant settings.
- Configure or import the necessary catalog(s) for your stores.
- Configure price lists and price list assignments based on your pricing strategy.
- Configure inventory management according to your business requirements.
- Download Default B2B Theme or Build a custom one.
- In addition to the steps mentioned above, it is important to configure the DNS settings for each domain associated with the stores. Make sure to update the DNS records to point the domain names (e.g., store1-domain.com, store2-domain.com) to the appropriate IP address or hostname where your Virto Commerce instance is hosted.
Configuring Multiple Stores
Follow these steps to configure multiple stores with their own domains in Virto Commerce:
Step 1. Create and Configure Store1:
- Assign the appropriate catalog to Store1.
- Configure price list assignments for Store1, if required.
Ensure that Store1 has unique domain name, such as https://store1-domain.com.
Step 2. Deploy Theme
- Go to Content, Select Store and Upload the desired theme for the store.
- Navigate to store
The default path for the CMS-CONTENT folder is wwwroot\cms-content\Themes{StoreId}.
You can automate theme deployment to the shared CMS-CONTENT folder to streamline the process.
Step 3. Configure Next Store:
Follow the same process as Step 1 and 2 to create and configure Store2.
Each store should have its own domain name, such as https://store2-domain.com.
How to Share the Same Theme Between Multiple Stores
It is possible to share the same theme between multiple stores by utilizing the LiquidThemeEngine:BaseThemePath
setting in the storefront’s appsettings.json file.
This approach allows each store’s specific CMS-CONTENT folder to contain unique store customizations.
Summary
Configuring multiple stores with multiple domains in Virto Commerce provides great flexibility and convenience for managing distinct web experiences on the same platform. You can easily set up and configure multiple stores with their own domain names, assign catalogs and price lists, and upload custom themes.
Additionally, you have the option to share themes between stores to streamline development efforts. With Virto Commerce, you can create a cohesive and efficient multi-store environment to meet the unique needs of your business.
We hope this guide helps you leverage the powerful capabilities of Virto Commerce in managing multiple stores with ease. If you have any further questions or need assistance, please don’t hesitate to reach out to our support team.
Happy configuring!