Why write an analysis before touching a cart?
Because the expensive part of a replatform is the list of things nobody wrote down. A store that has traded for years uses a subset of Shopify’s feature surface in ways that are invisible until you try to leave.
An analysis has one job: make the unlisted work visible while it is still cheap to change the plan. A build plan answers “how do we build this?” An analysis answers “what is this, what does it cost, in what order, and what could make it the wrong call?” The audience is the person who signs off.
The feature map: every capability gets a row
The feature map is the heart of the document. Each row names a capability, the Shopify mechanism, the Medusa v2 mechanism, the gap, and the work it implies.
| Capability | Shopify mechanism | Medusa v2 mechanism | Typical gap |
|---|---|---|---|
| Catalog, variants, options | Products, variants, options | Product module: products, variants, options | Option-to-variant modelling differs; images and rich descriptions need mapping |
| Custom data | Metafields and metaobjects | Metadata fields, custom modules | Typed metafields need a schema decision |
| Customer accounts | Customer accounts, addresses, order history | Customer module plus a storefront auth flow | The storefront pages are yours to build |
| Discounts | Discount codes, automatic discounts, combinations | Promotion module | Combination rules rarely map one to one |
| Tiered or contract pricing | Price lists, B2B catalogs, theme logic | Price lists and price preferences | Any pricing that lived in Liquid or a Shopify Function has to become a Medusa rule |
| Tax | Tax regions and rates, or a tax app | Tax module with a pluggable provider | A US multi-state seller usually needs a provider, not rate tables |
| Payments | Shopify Payments or a gateway | Payment module with a provider per gateway | Saved cards and vaulting do not migrate |
| Fulfilment | Native fulfilment, 3PL apps | Fulfilment module plus a provider | Every provider integration is a build item |
| Apps and extensions | App Store apps, Functions, theme scripts | Custom modules and storefront code | Each app becomes either a module or a manual process |
| SEO and URLs | Collections, products, blog, redirects | Custom routes and redirects | Every URL that changes is a redirect and a traffic risk |
Two rules keep the map honest: a row may only say “equivalent” if the behaviour matches rather than the noun, and every row that needs work gets an id so the build ledger can reference it.
Read the theme, not just the admin
The most common miss is capability that lives in Liquid. Tiered pricing, a customizer, a bundle, a size chart and a shipping estimator can all be theme code calling the Storefront API, so none of them appear as a Shopify feature to migrate.
On the promotional-products store, quantity price breaks lived in a theme snippet of roughly 560 lines of inline JavaScript reading a metafield. That is a pricing rule, and it belongs in the feature map as a line item, even though Shopify’s admin shows nothing unusual. Finding them means reading the theme for metafield reads, custom elements and fetch calls.
The build ledger: pricing work in units, not adjectives
The build ledger turns the gaps into estimated work. Each line has an id from the feature map, a short description of the deliverable, its category — configured, integrated, written, migrated or cut over — and the test surface that proves it works.
The categories matter more than the hours: “customer accounts” and “a tax provider” are not the same work.
- Configured. A Medusa module already does it; the work is settings and seed data. Regions, currencies, shipping options and tax regions land here.
- Integrated. The module exists but needs a provider or adapter. Payments, fulfilment, tax and email each get their own line.
- Written. No module exists, so it is app-level work. A price-break rule, a customizer, a feed or a B2B approval flow lands here.
- Migrated. Data has to move: customers, orders, addresses, metafields, subscriptions. This category is underestimated because it is invisible in the admin.
- Cut over. Redirects, DNS, analytics, feeds and the parallel run. Not a build item, but it consumes calendar time.
The reference build gives two calibration points. A tax provider is one module with a clear interface: implement getTaxLines, map the breakdown back to tax lines, cache, time out, and test the address, rounding, disabled and error paths. A catalog sync is a workflow with batching, progress records and idempotent recovery, and it failed at production volume. Both belong in the ledger; they are not the same size band.
Phasing: what ships in which order
Phasing is how the analysis survives contact with a business that cannot stop selling: data model and read-only storefront first, money last.
- Foundation. Medusa with regions, currencies, tax regions, a product model and an admin. No customer traffic.
- Catalog and content. Products, variants, metafields, collections, images and storefront routes, validated against a crawl of the live site.
- Accounts and orders (read). Customer records, addresses, historical orders and account pages.
- Cart and checkout. Cart, shipping, payment provider, tax provider, and a test-mode purchase that produces a real order and a fulfilment draft.
- Fulfilment and operations. Provider orders, tracking, returns, refunds, emails and the reports the team uses.
- Cutover and parallel run. Feeds, analytics, redirects, and a period where the old store can still take an order.
The judge of a phase is not “the code is merged” but “this can be demonstrated end to end”. The reference build’s acceptance test had that shape: a test-mode order going cart to payment to Medusa order to a provider draft order with a tax line, plus a stock change that removed a variant from the storefront and the feed in the same run.
Tax: the part everyone underestimates
Sales tax is where a Shopify migration becomes an accounting project. Shopify calculates tax at checkout and, depending on the plan and the merchant’s registrations, can file and remit in some jurisdictions; a self-hosted Medusa store does none of that, so the business owns registration, calculation and remittance.
Medusa’s Tax Module calculates tax lines through a provider service. The built-in tp_system provider does basic arithmetic against tax regions and rates, which is fine for a single jurisdiction and wrong for a US seller with registrations in several states. A real tax engine has to sit behind ITaxProvider.
The four-store implementation shows the shape of that work:
- Each cart becomes a Stripe Tax calculation: line items in cents, a tax code per category, shipping as a separate cost, and the shipping address as the address.
- Stripe’s breakdown maps back to Medusa tax lines, keeping the line item or shipping line id so the order can be audited.
- Identical requests are cached for 10 minutes in a bounded cache, because a cart changes on every quantity edit and each calculation is a paid call.
- A timeout and an error path are part of the provider, because a checkout that hangs on a tax API loses the order.
The tax codes are not cosmetic. General tangible goods and apparel carry different codes, and a state that treats clothing differently will produce a different rate. Mapping the store’s categories to the wrong code is a silent, systematic error.
The zero-tax decision
The build plan’s first instinct was to block checkout rather than charge zero tax. The implemented provider does the opposite: when tax is off or unconfigured, it returns no tax lines and lets the order through. An analysis has to put that in front of the owner, because it is a business choice with a legal edge: blocking protects the tax position and stops trading, while letting orders through puts the collection risk on the merchant.
The risks that decide the answer
A migration analysis that lists only work is a sales document. The risks section is what makes it useful.
- Fulfilment integration maturity. A young or single-maintainer provider library is a dependency with a bus factor. The reference build flagged the fulfilment library as young, with a fallback: write the provider against Medusa’s interface if the library fails review.
- Customer and order data. Passwords do not migrate. Order history has to be recreated in a shape the account pages and finance both accept.
- Discount and pricing parity. Promotion combinations, price lists and theme-level tier pricing rarely map one to one, and each difference is a complaint at launch.
- App replacement. Every app is rebuilt, replaced by a module, or dropped.
- SEO and URLs. A crawl, a redirect map and a zero-regression baseline belong in the plan, not in cutover week.
- Operational reporting. A daily export or spreadsheet is part of the migration whether or not anyone wrote it down.
When the analysis should say no
The honest output of an analysis is sometimes “do not migrate yet”. Three conditions justify it: the store’s differentiation lives in Shopify-specific behaviour that would all have to be rebuilt; the team has no capacity to operate a backend; or the cost is dominated by tax and fulfilment work an app already solves.
What broke and what we changed
The provider turned out not to exist. The reference build’s tax line assumed a Stripe Tax package would do the job; the one that existed was a year stale against Medusa v2’s interface, so the line moved from “install and configure” to “write, test and maintain a module”.
The fulfilment library was younger than it looked. Product sync, order creation and live rates through a young library is a real dependency, so it stayed only with a pinned commit, a code review and a written fallback.
One transaction was assumed to be enough for the catalog. On the reference build, 294 products and 5,127 variants in a single transaction hung and then ran out of memory. Any ledger line that says “sync the catalog” now carries an explicit batching and resume design, because the naive version does not survive production volume.
Theme pricing was almost missed. The price-break logic was not in the admin; it was 560 lines of inline JavaScript in a snippet, found by reading the theme for metafield reads. It became one of the larger written items.
The tax failure mode was designed one way and built another. The plan said block checkout; the implementation let orders through with no tax. The decision is now an explicit owner sign-off, with the consequence written next to it.
Related
Frequently asked questions
What is a Shopify to Medusa migration analysis?
It is a decision document that maps each Shopify capability the business uses to a Medusa v2 equivalent, estimates the gap as line items in a build ledger, sequences the work into phases, and names the risks. It exists so the owner can approve a cost and an order of work before any code is written.
How long does a Shopify to Medusa migration take?
The analysis should not answer that with a single number. Duration comes from the ledger: configured items are days, integrated providers are weeks, written modules are weeks to months, and migration plus cutover adds calendar time. Heavy theme logic, several apps and multi-state tax make a different project from a simple catalog.
Does Medusa support sales tax like Shopify does?
Medusa calculates tax through a provider, and the built-in provider only does basic rate arithmetic. A US seller with multiple state registrations needs a real tax engine behind the ITaxProvider interface, such as Stripe Tax, plus registrations in each state. Nothing about Shopify's tax handling transfers with the data.
Can customer accounts and order history move to Medusa?
The records can move; the passwords cannot. Customers need a reset flow on the new store, and historical orders have to be imported in a shape the account pages and finance reporting both accept. That work is usually underestimated because it is invisible in the old admin.
What happens to Shopify apps during the migration?
Each app becomes one of three things: a Medusa module, a custom build, or a manual process. The analysis lists every app with its replacement, because an app that silently disappears takes a business process with it — reviews, loyalty, subscriptions, tax, or fulfilment.
