E-commerce
E-commerce Website Development: Choosing a Store Architecture
Choosing how to build an online store is an operations decision, not a design preference. Shopify, a custom PHP application, and a hybrid of the two can all sell products. They differ in who owns the catalog data, how far you can change checkout, what you pay as you grow, and how painful it is to add a warehouse rule or a B2B price list later.
If you have not yet decided what you sell, how you fulfill, and how you refund, pause here and read starting an online store first. Architecture cannot fix an undefined business.
What the store has to do besides look like a store
Every serious catalog needs the same unglamorous jobs: create and update products, show accurate stock, calculate tax and shipping, take payment, send an order somewhere that can fulfill it, and handle returns without inventing a process in a spreadsheet. The platform you pick should make those jobs boring. Decorative themes do not.
Write down the exceptions before you pick a stack. Common ones include:
- Products that are configured (size, material, print file) rather than picked from a grid.
- Different prices for retail, wholesale, and logged-in accounts.
- Inventory that lives in a warehouse system you already pay for.
- Subscriptions, deposits, or invoices mixed with one-off card sales.
- Regions where you must show VAT-inclusive prices, or where a local wallet matters more than cards.
If your list is short and standard, a hosted platform is usually faster. If the list is long and unique to how you actually operate, custom work starts to earn its cost.
Shopify: when a hosted platform is the right default
Shopify is a good fit when you want a working checkout quickly, you sell a catalog that maps cleanly to products and variants, and you are willing to stay inside its app ecosystem for shipping, reviews, subscriptions, and accounting exports. You do not run the checkout servers. You do not invent PCI scope for card data. You pay a platform fee and transaction economics that are easy to model.
It is a weaker fit when you need checkout fields Shopify will not let you add, when your source of truth for stock is another system that fights the Shopify inventory model, or when you already have a custom PHP site that must remain the customer account. Apps can close many gaps. They can also stack monthly costs and create two places where an order can go wrong.
Treat theme shopping as the last 10 percent of the project. A clean product information model, shipping rules that match the carrier you will actually use, and a payment method customers already trust will outsell a distinctive homepage.
Custom PHP: when you need the application, not another storefront skin
A custom PHP store makes sense when the site is not only a catalog. Examples: a customer portal that already exists, quoting that is not a standard cart, inventory that must stay in your database, or a marketplace-like flow where the cart is the easy part. You own the schema. You can put business rules next to the order row instead of hoping an app hook fires.
You also own hosting, backups, upgrades, fraud review queues, and the payment integration. Card numbers must never land in your database. Use a processor’s hosted checkout or Elements-style fields so your servers see tokens, not PAN. That work is described in more detail in our Stripe integration guide.
Custom is slower to launch if you are still discovering the catalog. It is cheaper over a long horizon only if you will actually use the flexibility. A bespoke store that clones Shopify without a reason is an expensive way to reinvent a product listing page.
Hybrid: keep commerce hosted, keep the rest of the business yours
Hybrids are common and often underrated. Typical patterns:
- Marketing site and content on your domain, checkout on Shopify (or a Shopify-powered subdirectory).
- Shopify (or similar) as the cart, with a custom PHP admin that pushes products and pulls orders into your warehouse or CRM.
- Custom account and quoting in PHP, with payment collected through a processor-hosted Checkout session rather than a home-grown card form.
The hybrid works when there is one source of truth per object. Products live in one system. Orders live in one system. Everything else syncs in one direction as much as possible. Bidirectional sync without a clear owner is how you sell stock you do not have.
Payments should influence the architecture, not be bolted on last
If you sell subscriptions, you need a processor and a data model that can represent a billing period, a failed renewal, and a customer portal. If you sell high-ticket B2B, you may need invoices and bank transfer as first-class options, not a hidden FAQ. If you are a non-US founder trying to obtain a US processor account, the legal entity and bank account are part of the store project whether you like it or not.
Scriplit can help with payment gateway integration on both hosted and custom stacks. Approval at any processor is a separate underwriting decision. Building checkout does not create an account, and forming a company does not force a processor to accept you.
A practical comparison
| Shopify | Custom PHP | Hybrid | |
|---|---|---|---|
| Time to first paid order | Usually shortest for a standard catalog | Longer; you build catalog, cart, and admin | Medium; depends on what you keep custom |
| Unusual checkout or pricing | Limited by platform and apps | You can encode the real rule | Custom where it matters, hosted elsewhere |
| Ongoing cost shape | Platform + apps + processing | Hosting + development + processing | Both, so you must watch duplicate fees |
| Who patches security | Mostly the platform, plus your apps and theme | You and your developers | Split; document who owns each surface |
How to choose without a six-week debate
- List the ten order types you must support in the first six months, including the ugly ones.
- Mark which of those a hosted cart already does. Be honest.
- Estimate the cost of the apps you would need versus the cost of building those two or three exceptions.
- Decide where product data will be edited on a Tuesday afternoon when something is wrong.
- Only then pick a theme, a framework, or a homepage animation.
If you want a custom or hybrid store built against that list, Scriplit web development can scope it. Bring the operations notes, not a mood board. The architecture that matches how you fulfill orders is the one that still works a year later.