Virto Commerce lets you run multiple websites(stores) on a single platform instance, each with its domain, theme, and configurations while sharing the same catalogs and customer data. In practice, you create separate stores in the Virto Commerce Manager, assign catalogs/pricing, and upload individual themes. The new Virto Commerce frontend is fully headless and composable, so you can flexibly add any number of front-end sites.
Below is a step-by-step guide to set up multiple stores on Virto Cloud.
Prerequisites
Before you begin, ensure your Virto Commerce platform is deployed and running in Virto Cloud (see the Deployment on Virto Cloud).
Review Virto Commerce Frontend Architecture.
Step 1: Create and Configure Store #1, Store #2, etc
Follow the following steps to configure a New Store
Step 2. Create a New Virto Commerce Frontend Application
You can either create a new Virto Commerce Frontend Application or use ready ready-created artefact from VirtoCommerce/vc-frontend Releases
Step 3. Add Frontend Application
To integrate a frontend application (ex: B2B-loyalty ) into your Virto Commerce deployment, follow these steps.
You can find all changes in this commit.
-
Locate the
environments.ymlFile:
Navigate to theinfradirectory of your deployment repository and open theenvironments.ymlfile. -
Add the
B2B-loyaltyTheme:
Within thethemessection, add an entry forB2B-loyaltypointing to the appropriate theme package. For example:themes: B2B-loyalty: https://github.com/VirtoCommerce/vc-frontend/releases/download/2.22.0/vc-theme-b2b-vue-2.22.0.zip -
Define the
B2B-loyaltyFrontend Application:
Under thefrontendsection, add a new entry forB2B-loyaltywithprerenderset totrue. For example:frontend: - name: B2B-loyalty -
Configure Domain and Routing in Ingress:
3rd-level domain for govirto.com will be enabled automatically. If you will need additional steps for custom domain assignment. Please follow Virto Cloud documentation for it.
- host: virtostart-loyalty-store.govirto.com
root: B2B-loyalty
paths:
- path: /xapi
route: platform
- path: /files
route: platform
- path: /connect/token
route: platform
- path: /graphql
route: platform
- path: /revoke/token
route: platform
- path: /api/files
route: platform
- path: /externalsignin
route: platform
- path: /signin-oidc
route: platform
- path: /signin-google
route: platform
- Deploy the Changes:
After updating theenvironments.ymlfile, apply the changes to your deployment environment using your standard deployment process.
By following these steps, you will successfully add the B2B-loyalty frontend application to your Virto Commerce deployment configuration. Here the some results after small branding.
