The Solution
Consolidate the Brands. Rebuild the Model Natively. Keep the Business Running.
Start With Architecture, Not Code
The engagement opened with a discovery and definition phase rather than a build. Anatta worked through the current-state systems, the integration points, the country-by-country requirements and the distributor logic, and produced the artifacts an undertaking this size actually turns on: a business requirements document by domain, a system architecture and integration plan, a data migration strategy, a phased implementation roadmap with critical path, and a risk register.
That phase settled the questions that would otherwise have surfaced mid-build as crises — how brands would consolidate under shop.com, how search would work across two very different catalogs, how payments would be handled market by market, and where the boundary sat between what Shopify would own and what Market America's own systems would continue to own.
One Theme, Twenty-Four Stores
The storefront was built as a Horizon-based master theme serving every market, with a shared component system, global styling and a page builder that lets marketing and merchandising assemble pages without an engineering ticket. From that single foundation, twenty-four stores were stood up and configured across eight countries.
Each market carries its own currency — US, Canadian, Australian and Singapore dollars, Hong Kong dollars, New Taiwan dollars, Malaysian ringgit, Indonesian rupiah — its own tax and duty treatment, its own routing rules, its own payment gateways including the regional providers that local rails demand, and its own fraud configuration.
Five Languages, Properly
Localisation ran through a dedicated translation workflow with strings and metadata managed inside Shopify, rather than duplicated content or a translation widget sitting on top of an English site.
English serves the United States, Canada, Australia and Singapore, and sits alongside local languages in several Asian markets. Traditional Chinese serves Taiwan and Hong Kong. Simplified Chinese is offered in Malaysia and Singapore. Bahasa Melayu serves Malaysia. Bahasa Indonesia serves Indonesia.
Crucially, language and country are separate choices where the market requires it. A shopper in Malaysia picks between Bahasa Melayu, Simplified Chinese and English on the same store, with prices in ringgit, local payment methods, local partner stores and local commission values throughout. That is a materially harder problem than one-language-per-country, and it reaches everywhere — product titles, descriptions and content blocks, navigation, transactional messaging, and the storefront imagery itself, where Shopify has no native concept of a per-language image and the solution had to be engineered through naming conventions and metafield logic.
Getting this wrong in a direct selling business is not a cosmetic failure. A distributor in Kuala Lumpur sharing a product link with a customer needs that customer to land on the right country, in the right language, at the right price, with the right cashback value and the right commission attribution attached. Every one of those has to resolve correctly on a single click.
Rebuild the Distributor Storefront on Native Primitives
Personalised distributor sites were rebuilt on Cloudflare Workers with edge key-value routing, resolving each distributor's path at the edge, persisting portal context for the session, and injecting that distributor's identity into the storefront. Their configuration — display name, contact details, shipping preferences, free shipping toggles, even their own analytics tracking — lives in Shopify data rather than in a separate system that has to be kept in sync forever.
Referral attribution, "presented by" identity in the header, and direct contact between a customer and their business owner all carried across, in every market and every language.
Put the Commission Model Into the Commerce Layer
Business Volume and Internet Business Volume were modelled as product metafields across both proprietary and affiliate products, aggregated through a Cart Transform Function, and surfaced on listing pages, product pages and in the cart. Checkout extensions validate placement and downline rules against Market America's own systems before an order completes.
This is the part most replatforms would have declared out of scope and left in the legacy stack. Building it natively is what makes the new platform the system of record rather than a front end bolted onto the old one.
Federate a Catalog of Millions Without Importing It
Proprietary inventory syncs into Shopify and into Algolia. The affiliate catalog — millions of products and partner stores — is normalised and indexed in Algolia only, never stored in Shopify, and surfaced through a React search experience that blends proprietary products, partner products and store listings in a single set of results, ranked by the shopper's country, customer type and business owner context. An authenticated redirect layer handles attribution when a shopper leaves for a partner retailer.
Indexing what you don't own, and refusing to import it, is the difference between a catalog that scales and a platform that collapses under someone else's data.
Where the Storefront Needed to Be an Application
Some surfaces genuinely needed application behavior rather than templating. Those were built as React micro-frontends injected into Liquid as islands — search, the distributor portal manager, and checkout validation.
That pattern is the quiet center of the architecture. It let Market America keep the sophisticated interfaces its model demands without rebuilding the storefront as a bespoke application, and it kept the parts of the system that change often decoupled from the parts that shouldn't.
Migrate Identity Without Touching Passwords
Encrypted single sign-on from Market America's existing identity provider, with Shopify accounts auto-provisioned the moment a token resolves and a passwordless one-time-code flow for new sessions. Customer records sync bidirectionally, enriched with distributor and genealogy status so pricing and entitlements resolve correctly on every surface.
Millions of accounts moved, and the people who use them never had to do anything.
Everything Else a Global Business Actually Needs
The cashback wallet rebranded, surfaced in the header, integrated into checkout and reconciled with the external ledger. Subscriptions migrated with payment tokens and delivery cadence preserved. Product data flowing from the existing PIM. Order history synchronised for real-time tracking and reorder. Affiliate networks, email, SMS, ERP, warehouse and analytics all integrated rather than replaced. And bulk SEO-safe redirect mapping from a decade and a half of legacy URLs across a consolidated domain estate — the least visible workstream on the project and the one that protects the most revenue.
Then Launch It All at Once
The cutover was a parallel run followed by a global DNS flip, with branded domains consolidating into shop.com and distinct brand experiences preserved as destinations inside the unified site. Joint testing across regions, languages and features ran between both engineering teams ahead of go-live.
A phased rollout would have been easier to manage and impossible to operate. A distributor network cannot be half-migrated: the compensation plan, the shopping cart and the customer relationships all span markets, and running two systems in parallel would have meant reconciling them indefinitely. The harder launch was the correct one.