How virtocommerce/vc-frontend works
Virto Commerce Frontend is a Vue single-page commerce application for B2B and B2C storefronts. A shopper enters through the application router, browses catalog/search results, manages a cart, and proceeds through checkout; account, organization, and order workflows support the broader commerce experience. Sales-representative tools add customer, order, document, and task views, while customer reviews and page-builder preview extend the storefront. The graph reflects documented routing and sampled composable/API calls; unsampled domain links are omitted rather than inferred as confirmed calls.
Main entry points: main.ts Route registry · useSalesRepHubQuery.ts Hub query helper · useCustomerReviews.ts Customer reviews · client.ts GraphQL API
Components 17
Application shell
- Application shell
client-app/App.vue - Route registry
client-app/router/routes/main.ts - GraphQL API
client-app/core/api/graphql/client.ts
Commerce domains
- Catalog and search
client-app/core/api/graphql/catalog - Cart
client-app/core/api/graphql/cart - Checkout
client-app/pages/checkout/review.vue - Accounts
client-app/core/api/graphql/account - Orders
client-app/core/api/graphql/orders - Organizations
client-app/core/api/graphql/organization - Fulfillment centers
client-app/shared/fulfillmentCenters/composables/useFulfillmentCenters.ts
Sales representative
- Sales rep routes
client-app/modules/sales-rep/routes.ts - Sales rep tasks
client-app/modules/sales-rep/composables/useSalesRepTasks.ts - Hub query helper
client-app/modules/sales-rep/composables/useSalesRepHubQuery.ts
Storefront extensions
- Customer reviews
client-app/modules/customer-reviews/useCustomerReviews.ts - Builder preview
client-app/plugins/builder-preview/builder-preview.plugin.ts - Reviews GraphQL operations
client-app/modules/customer-reviews/api/graphql/index.ts
Other components
- Shopper
Connections 14
- Shopper → Route registry: navigates
README.md - Route registry → Application shell: renders routes
README.md - Route registry → Sales rep routes: mounts routes
client-app/modules/sales-rep/routes.ts - Shopper → Catalog and search: browses
README.md - Shopper → Cart: manages cart
README.md - Shopper → Checkout: checks out
README.md - Shopper → Accounts: manages account
README.md - Shopper → Orders: views orders
README.md - Shopper → Organizations: manages organization
README.md - Fulfillment centers → GraphQL API: requests data
client-app/shared/fulfillmentCenters/composables/useFulfillmentCenters.ts - Sales rep tasks → Hub query helper: queries tasks
client-app/modules/sales-rep/composables/useSalesRepTasks.ts - Hub query helper → GraphQL API: executes query
client-app/modules/sales-rep/composables/useSalesRepHubQuery.ts - Customer reviews → Reviews GraphQL operations: calls operations
client-app/modules/customer-reviews/useCustomerReviews.ts - Shopper → Customer reviews: submits feedback
README.md