Skip to content

E-commerce

Building an e-commerce site: platform, AI or hybrid?

Cover: Building an e-commerce site: platform, AI or hybrid?

To build an e-commerce site today you have three paths: a ready-made platform such as Shopify, Wix or WooCommerce, a custom build created with AI agents such as Claude Code or Google Antigravity, or a hybrid approach that uses the platform as the “engine” and custom code for the storefront. None of the three is right in absolute terms, because each one distributes time, cost and risk differently.

Until a couple of years ago the question clients asked me was almost always the same: “Shopify or WooCommerce?”. Today the question has changed and sounds more or less like this: “With AI, can’t I just build it myself?”. It is a legitimate question. Development agents write working code in a few hours, and anyone who has seen a demo gets the impression that the technical problem has disappeared.

In my view it hasn’t disappeared, it has simply moved. Writing the code for an online shop has become much easier, while running it, securing it and making it grow requires the same skills as before.

The market context matters too. According to the European E-commerce Report 2025 by Ecommerce Europe and EuroCommerce, B2C e-commerce turnover in Europe grew by 7% in 2024, to €842 billion, and 73% of Europeans aged 16 to 74 bought online. It is a mature market, in which customers expect fast checkouts, easy returns and secure payments. Those who get the technical foundations wrong pay for it in conversions, not in elegance of code.

In this article I explain how the three approaches work, what you gain and what you risk with each, and how I go about it when a client asks me to help them choose.

The three paths to building an e-commerce site: quick definitions

An e-commerce site on a platform is an online shop built on ready-made software that gives you catalogue, cart, checkout, payments and order management. Your job is to choose a theme, install apps for the missing features and configure everything. Shopify and Wix are SaaS platforms: you pay a subscription and the provider takes care of everything else. WooCommerce, on the other hand, is an open-source plugin for WordPress: the software is free, but servers and maintenance are up to you.

A custom e-commerce site built with AI is a shop whose code is written specifically for you, with the help of development agents such as Claude Code or Google Antigravity. The agent reads the project, writes the files, runs the commands and fixes errors, while you (or your developer) decide the architecture and connect the external services: payments, hosting, email, site search, invoicing.

A hybrid e-commerce site, often called headless, separates the storefront from the engine. The engine remains a platform (Shopify, Wix, WooCommerce or an open-source engine) and handles products, orders, payments and checkout. The storefront, the part the customer sees, is custom code, which today can be built with the same AI agents. The two parts communicate through APIs.

Diagram of the three approaches to building an e-commerce site: all-in-one platform, custom development with AI and external services, hybrid approach with a custom storefront connected to the platform via API

The real difference between the three approaches is not the technology, but who takes responsibility for what. With a SaaS platform you delegate almost everything; with custom development you take on almost everything. With the hybrid you keep the part that sets you apart from competitors and delegate the part that simply has to work.

Ready-made platforms: Shopify, Wix and WooCommerce with integrated apps

A ready-made platform is the fastest way to start selling online: within a few weeks you have a working shop, with payments, shipping and order management already sorted. In exchange you give up some flexibility.

I have already written a detailed comparison of Shopify, Magento and WooCommerce, so here I’ll focus on how these platforms compare with the other two approaches.

How an e-commerce platform really works

The logic is that of Lego bricks. The platform gives you the basic pieces: catalogue, variants, cart, checkout, customer accounts and order panel. The theme sets the look, while apps add what is missing, such as reviews, loyalty programmes, upsells, advanced filters, integrations with the management system and subscriptions.

There is little or no code to write: most of the work is configuration. This is both the strength and the limit of platforms.

Shopify: the standard for those who want to sell now

Shopify is the platform I recommend most often to those starting from scratch or growing without an in-house technical team. It has a solid checkout, receives continuous updates, offers a very wide app ecosystem and an infrastructure that handles traffic peaks without you having to worry about it.

The main limit is that you are playing on someone else’s turf. The checkout can only be customised within certain boundaries, and some special logic, such as complex B2B price lists, product configurators or unusual pricing rules, requires paid apps or workarounds.

Wix: simple, but designed for the website before the shop

Wix started as a website builder and added e-commerce later. It works well for a small catalogue, for those who mainly sell services with a few products, or for those who want to manage everything from the same panel. The visual editor is convenient for people who don’t want to deal with technical aspects.

I also know it from direct experience, because my own site stayed on Wix for years. For a brochure site it is a reasonable choice, but for an e-commerce site that has to grow in catalogue, foreign markets and integrations, I find you hit the limit sooner than with Shopify.

WooCommerce: open-source freedom, maintenance on you

WooCommerce is a plugin for WordPress. The software is free and modifiable, which gives you a lot of freedom: you can install it on the hosting you prefer and change every line of code.

That freedom, however, has a cost. Updates to WordPress, the plugins and the theme are your responsibility, and security and performance depend on how the server is configured. I have seen excellent WooCommerce shops and painfully slow ones with thirty plugins installed: the difference always lay with whoever was running them.

Advantages of ready-made platforms

  • Short launch times: you think in weeks, not months.
  • Payments and checkout already secure: the platform handles compliance with payment card security requirements (PCI DSS).
  • Predictable costs: subscription plus apps, without big surprises linked to development.
  • Autonomy for the marketing team: products, promotions and pages are managed directly from the panel.
  • Ecosystem: for almost every common problem there is already an app that solves it.

Disadvantages of ready-made platforms

  • The “app tax”: every extra feature translates into a monthly subscription. After a couple of years you can find 15-20 active apps, some of them forgotten.
  • Performance: every app adds scripts to the page, the site slows down and conversions suffer.
  • Limited customisation: the checkout and some product logic can only be adapted up to a point.
  • Vendor dependence: prices, fees and rules are decided by the platform. Migrating elsewhere is possible, but it has a cost.

When to choose a ready-made platform

In my view it is the right choice four times out of five, especially when:

  • you are starting out and need to find out whether the product sells;
  • your competitive advantage is the product, the brand or the marketing, not the shopping experience;
  • you have no in-house developer and don’t want to depend on a supplier for every change;
  • your catalogue and sales rules are “normal”: products with variants, standard shipping, classic discounts.

If you are launching a new brand, think as you would with an MVP: the first goal is to check that someone buys, not to build the perfect architecture.

Custom e-commerce with AI: Claude Code, Antigravity and external services

A custom e-commerce site built with AI agents is a shop in which every component is written to your requirements, with an agent generating and editing the code instead of, or alongside, a developer. It is the solution that offers the most freedom, but also the one that exposes you to the greatest risks if you approach it lightly.

What Claude Code and Google Antigravity really do

Claude Code is Anthropic’s tool for agentic development: it works in the terminal, in the code editor or in the desktop app, reads the whole project, edits files, runs commands and manages versioning with Git. Google Antigravity, launched by Google at the end of 2025 together with Gemini 3, is a development platform in which several agents work across editor, terminal and browser to plan, write and verify code.

In practice you describe what you need, for example “a product page with colour and size variants, connected to the catalogue”, and the agent proposes a plan, writes the code, tests it and fixes it. It is not a website builder with a visual editor: it is more like a very fast developer, who nevertheless needs someone who knows what to ask and who checks what it delivers.

I say this from direct experience too. The site you are reading moved from Wix to a solution built with Claude Code, with Astro for the site and Netlify for publishing. It is not an e-commerce site, but the process is the same, and it taught me one thing: AI shortens development times enormously, but every architectural choice is still yours.

What a custom e-commerce stack looks like

An online shop is much more than a website with a cart. When you build custom, you have to put together (or have the agent put together) several components:

  • Front end: the pages the customer sees, usually built with frameworks such as Next.js or Astro.
  • Commerce engine: catalogue, prices, cart, orders and inventory. You can write it from scratch or use an open-source engine such as Medusa, which offers these modules ready-made through APIs.
  • Database: where products, customers and orders are stored.
  • Payments: a provider such as Stripe, Adyen or PayPal, ideally with a payment page hosted by them.
  • Hosting: the servers or cloud services everything runs on.
  • Ancillary services: transactional email, site search, shipping and labels, reviews, analytics.
  • European obligations: electronic invoicing where it is mandatory (in Italy, for example), the EU VAT One-Stop Shop (OSS) scheme for sales to other EU countries, handling of the 14-day right of withdrawal, cookies and privacy, accessibility.

On a ready-made platform many of these items are already solved. In custom development, on the other hand, each one requires a decision and, over time, maintenance.

Advantages of the custom AI approach

  • Total freedom over the shopping experience: configurators, complex bundles, B2B logic, unconventional purchase journeys.
  • Performance: a lightweight site, without the scripts of twenty apps, can be much faster.
  • No platform subscription or commission: you pay for services and infrastructure, not a percentage of sales.
  • Ownership of code and data: you can move everything wherever you want, whenever you want.
  • Development costs much lower than a few years ago: what took a team months of work can now be prototyped in a few days.

Disadvantages of the custom AI approach

On this point I am more blunt, because this is where I see expectations furthest from reality.

Security is not automatic. Veracode’s 2025 GenAI Code Security Report, which tested more than 100 models on 80 coding tasks, found security vulnerabilities in 45% of cases. Models are improving fast, but the principle still holds: if nobody explicitly asks for secure code and nobody checks it, the agent can go down the wrong road. In an e-commerce site you handle personal data and orders, so a mistake of this kind is far more serious than a cosmetic flaw.

Maintenance never ends. There are libraries to update, supplier APIs that change version and new regulations to comply with. On a platform someone else takes care of it, while on a custom site it is up to you, every month.

You depend on whoever knows the project. If the code was written by an agent guided by a single person, what happens when that person leaves? Who can understand it? AI doesn’t remove the risk of depending on one person; it can even increase it, because code piles up faster than anyone can read it.

Hidden costs. Hosting, external services, monitoring, backups and deployments are all items to budget for. On my site, for example, every deployment on Netlify uses credits: nothing dramatic, but it is a cost you wouldn’t see on a platform. On an e-commerce site with many changes a day these items need to be estimated in advance.

Marketing loses autonomy. If changing a banner means opening the project and asking the agent, the marketing team is left waiting, unless a content management panel is planned from the start.

When a custom e-commerce site makes sense

I only recommend it when at least two of these conditions are true:

  • the shopping experience is your competitive advantage (configurators, personalisation, special flows);
  • you have an in-house technical person, or a stable partner, who checks the code and takes responsibility for it;
  • your sales rules don’t fit the platforms’ standard models;
  • your volumes are such that fees and subscriptions weigh more than the cost of dedicated development and maintenance.

If none of these conditions applies, building custom risks becoming an elegant way of making life complicated.

The hybrid approach: custom storefront, platform engine

The hybrid approach entrusts to a platform everything that has to be reliable (catalogue, orders, payments, checkout) and to custom code everything that has to set you apart (pages, navigation, product experience). In my view it is the most interesting option of the last two years, precisely thanks to AI agents.

How a headless e-commerce site works

The platform makes its data available through APIs, and the custom storefront reads it and presents it the way you prefer. At payment, the customer is sent to the platform’s checkout.

The main platforms have already geared up for this model:

  • Shopify offers the Storefront API and Hydrogen, a set of tools for building custom storefronts, while checkout stays on Shopify.
  • Wix offers Wix Headless, which lets you build the front end with any technology, including generating it with agents such as Claude Code, while Wix manages catalogue, payments and the panel. The most sensitive pages, such as checkout, can stay hosted by Wix.
  • WooCommerce provides its REST APIs, which let you use WordPress as an engine paired with a separate storefront.
  • Open-source engines such as Medusa are designed for this model from the start.

In this scenario the role of AI is clear: the agent builds and evolves the storefront, the most creative and changeable part, while the engine, less visible but critical, stays in the hands of those who develop it professionally.

Advantages of the hybrid approach

  • Freedom where it is needed: design, speed, content and navigation without the constraints of the theme.
  • Security where it counts: payments and checkout stay on certified infrastructure.
  • Lower risk in using AI: if the agent gets something wrong in the storefront, the damage affects how pages look or work, not payment data.
  • Easier to change course: you can redo the storefront without touching orders and customers, or change platform while keeping the storefront.

Disadvantages of the hybrid approach

  • Two systems to manage: the platform on one side, the storefront code on the other. You need skills in both.
  • Many apps don’t work: most platform apps are designed for standard themes. In a custom storefront, features such as reviews, upsells or filters have to be integrated through APIs or built from scratch.
  • SEO is on you: meta tags, structured data, sitemaps and performance depend on how the storefront is built, and the platform no longer takes care of them for you.
  • Double costs: you pay the platform subscription and, on top of it, hosting and development of the storefront.

When to choose the hybrid

The hybrid makes sense when the ready-made platform feels restrictive on the experience side, but you don’t want to take on the risk of managing payments and orders. It typically applies to:

  • brands that have already validated the product and want a much faster, more polished site;
  • companies selling on several channels (website, app, digital points of sale) with the same catalogue;
  • those with a lot of editorial content linked to products, such as guides, configurations or stories;
  • those who want to use AI agents to evolve the front end quickly, with a safety net underneath.

Who takes care of what: the part nobody tells you

When you compare the approaches, the most useful question is not “which technology is better?”, but “who gets woken up at night if the checkout stops working?”. Each approach distributes responsibilities differently.

Layered diagram showing who manages hosting, security, payments, checkout, catalogue and storefront in the three approaches: platform, hybrid and custom

The most delicate case is payments. The PCI DSS standard sets the security requirements for anyone handling card data. If the customer enters their card on a page hosted by the payment provider, through a redirect or an iframe, your obligations are greatly reduced. If instead the card data passes through your code, the obligations increase significantly.

That is why, when a client proposes a custom e-commerce site built with AI, the first rule I set is simple: the agent does not write the checkout. You use the payment page hosted by the provider, or the platform’s checkout. Everything else is open for discussion.

The same reasoning applies to the other layers. On a SaaS platform, hosting, updates and security are the provider’s job; with WooCommerce they are yours or your managed host’s; in custom development they are entirely yours, even when the code was written by an agent. AI can write the code, but the responsibility always stays with you.

Comparing the three approaches to building an e-commerce site

The table below summarises how the three approaches perform against the criteria I usually use with clients. The ratings are indicative, because they depend a lot on the catalogue, the volumes and the team’s skills.

Criterion Ready-made platform (Shopify, Wix, WooCommerce) Hybrid / headless Custom with AI
Launch time Weeks One to a few months From a few weeks (prototype) to months (solid product)
Initial cost Low Medium Variable: low for the prototype, high to make it reliable
Recurring costs Subscription, apps, fees Platform subscription, hosting, development Hosting, external services, ongoing maintenance
Customisation Limited to themes and apps High on the storefront, limited on checkout Total
Skills required Management and marketing Front-end development and knowledge of the platform Full development, security, infrastructure
Security and payments Managed by the platform Managed by the platform On you (reduced with hosted payments)
Maintenance Minimal (more demanding with WooCommerce) Medium High and ongoing
Performance Good, worse with many apps High, if the site is well built High, if the site is well built
Technical SEO Largely already set up Up to whoever builds the storefront Up to whoever develops
Vendor dependence High Medium Low on the platform, high on whoever knows the code
Marketing autonomy High Medium (a content panel is needed) Low, unless there is a dedicated panel

Looking at the table, the temptation is to count the “winning” columns, but that is rarely the right way to decide. A criterion such as payment security can be worth more than three criteria about customisation. That is why I recommend giving each criterion the weight it has in your specific case, rather than simply adding up the points in favour.

How to choose: the questions I ask clients

When a company asks me which approach to choose, I don’t start from the technology but from five questions. Usually, once the answers are found, the choice almost makes itself.

Decision matrix between the three approaches based on the need to customise the experience and the technical skills available

1. Does your competitive advantage lie in the shopping experience?

If you sell a product that stands out for quality, brand or price, the shopping experience has to be good, but not necessarily different from others’. In this case a platform is more than enough. If instead the customer chooses you precisely because your purchase process is different, for example because they can configure the product, build a bundle or book and buy in the same step, then it is worth investing in a hybrid or custom approach.

2. Who will be checking the code a year from now?

It is the question that creates the most silence in meetings. An AI agent produces code quickly, but you need someone who reads it, understands it and takes responsibility for it. If the answer is “nobody” or “the guy who built it, as long as he works with us”, my advice is to stay on a platform.

3. How much do subscriptions, apps and fees weigh on your margin today?

For a small shop, a platform subscription is the lowest price you can pay to have a reliable e-commerce site. For a shop with significant volumes, on the other hand, fees and apps can become an item large enough to justify an alternative. Do the maths on an annual basis and compare it with the real cost, of development and maintenance, of the alternative solution. If you need a reference point on the value of your customers over time, the reasoning on Customer Lifetime Value helps you understand how much you can afford to spend to acquire and serve them.

4. Does the marketing team need to be autonomous?

Promotions, landing pages, price changes, seasonal banners: if these activities happen every week, the team must be able to handle them without opening a request to the technical department. Platforms offer this autonomy as standard, while with the hybrid and custom approaches you only get it if you plan a content panel from the start.

5. Are you validating an idea or growing a business that already sells?

If you are validating an idea, speed matters more than anything else: platform, clean theme and a few essential apps. If instead you are growing and have data on what is holding sales back, you can work out on solid grounds whether the limit really is the platform or something else. In my experience, very often the problem lies elsewhere: weak product pages, poorly qualified traffic or shipping costs that are too high.

The mistakes I see most often

There are four mistakes I come across fairly regularly, whatever the sector.

Rebuilding the site to solve a marketing problem. Sales drop and the decision is made to change platform. Six months later the site is new, but sales are the same, because the problem was somewhere else.

Confusing the prototype with the product. With an AI agent, in a weekend you can get a shop that works well in a demo. But between that shop and one able to handle returns, refunds, payment errors, traffic peaks and tax obligations there is still most of the work.

Piling up apps without cleaning up. On a platform the shop slows down one app at a time, almost without you noticing. A review of installed apps every six months is one of the activities with the best effort-to-result ratio I know.

Choosing hybrid because it’s fashionable. “Headless” sounds modern, but if you don’t have anyone to look after the storefront over time, the only concrete result is having doubled your costs.

What to do from tomorrow

If you need to build an e-commerce site or rethink the one you have, don’t start from the question “which technology do I use?”. Start instead from three concrete aspects: what makes you different in the customer’s eyes, who will run the shop a year from now and how much the solution you use today really costs you.

If the answers are “the product”, “no in-house technical person” and “a reasonable subscription”, choose a platform and invest the rest of the budget in marketing and product pages. If the platform feels restrictive on the experience but you don’t want to deal with payments and security, consider the hybrid approach and use AI agents to build and evolve the storefront. If instead you have needs that are genuinely outside the norm and someone who takes responsibility for the code, custom development with AI is more accessible today than ever, as long as you treat it as a product to maintain over time and not as a project to deliver and forget.

AI has made development much faster, but it hasn’t made decisions any easier. If you want an outside opinion on which path suits you best, or a review of what you already have, write to me through the contact page: we’ll start from your numbers.

Frequently asked questions

Can you move from Shopify to a custom e-commerce site without losing your Google rankings?

Yes, as long as you map every old URL and set up 301 redirects to the new pages. Before the migration, export from Google Search Console the pages that bring in traffic, keep the titles and content of your main products and watch for crawl errors in the following weeks. A temporary dip is normal; a lasting loss usually isn't.

Can I use Claude Code or other AI agents on an existing Shopify store?

Yes, you can use them to edit the Liquid theme through Shopify CLI or to write small private apps and scripts that work with the APIs. It is often the safest way to start, because checkout, payments and infrastructure stay with Shopify. Always work on a copy of the theme and publish changes only after testing them.

Is WooCommerce free?

The WooCommerce plugin is free and open source, but the shop as a whole is not. You have to pay for hosting, the domain, often a premium theme and several extensions for shipping, payments or subscriptions. The most underestimated item is maintenance: updates to WordPress, the plugins and security need to be done regularly.

More articles on E-commerce