Skip to main content
Blog

Landing pages

How to build ecommerce pages with Claude Code

Claude Code writes the page fast, and here are three ways to add the products, checkout, hosting and tracking a store needs.

Start for free

To build ecommerce pages with Claude Code, ask it for the page, then connect the store parts it doesn't bring. Claude Code, Anthropic's coding tool, writes the page itself in minutes. A store page also needs your products and prices, a cart and checkout, hosting on your domain, and tracking. You can fill that gap three ways: Claude's chat with Replo, Claude Code with Replo's MCP server, or Claude Code alone.

Takeaways: Store owners and marketers can stay in Claude's chat and let Replo build, host and publish the page. Developers who like Claude Code can connect it to Replo's MCP server and skip hosting and checkout. Building from scratch in Claude Code works too, but you set up product data, checkout, hosting and tracking yourself.

Thomas Lau runs Reboot Hub, a Shopify store in Hong Kong that sells pre-owned DJI drones, parts and repairs. The company says it started with a shattered drone and a repair bill that felt like a ransom. Lau couldn't read a line of code, and agencies quoted him HKD 15,000 to 30,000 a month for SEO work.

So he had Claude Code write a script that rewrote the titles and meta descriptions on all 285 of his product pages in one run. Claude Code also added structured data to his theme and built the page template for his llms.txt file.

Reboot Hub's founder at a repair bench, working on a small drone with tools and cables around him
Reboot Hub's founder fixing a drone. He used Claude Code to update every product page on his Shopify store without learning to code. Photo: Reboot Hub

Can Claude build ecommerce pages?

Claude can write ecommerce pages, and with the right connection it can publish them. A few terms first:

  • Claude is Anthropic's AI assistant. Most people use it in the chat app at claude.ai or on desktop. For the store jobs a small shop can hand it, see Claude for small business.
  • Claude Code is Anthropic's coding tool. It runs in your terminal or code editor, reads and edits the files in a project, and runs commands for you (Claude Code docs).
  • An ecommerce landing page is one page built for one campaign, such as the page a Meta ad sends people to. It has one product or offer, and a button to buy it.
  • MCP, the Model Context Protocol, is the standard way an AI tool connects to another service. In Claude's chat app, an MCP service shows up as a connector or plugin. Connect Replo, for example, and Claude can read your Replo projects and build pages in them. The best Claude connectors for a store are ranked on one page, with a prompt to try for each.

On its own, Claude Code gives you a folder of files that looks like a landing page on your computer. A shopper can't buy from it yet. First the page needs a domain, real products and prices, a checkout for the cart, and your ad pixels. Each of the three ways below handles that part differently. Building a whole site, not one page? Claude website builder compares artifacts, Claude Design, Claude Code and Replo.

What are the ways to build ecommerce pages with Claude?

  • Claude's chat with Replo connected: no code. You ask in plain words. Replo builds the page with your products, hosts it and publishes it when you say so. This fits store owners, marketers and anyone who doesn't want a terminal.
  • Claude Code with Replo's MCP server: you can work in code, and Replo handles hosting, product data and checkout. This fits developers and technical founders who already use Claude Code.
  • Claude Code on its own: you own every file and every service. This fits developers building something no page builder does, with time to run hosting and checkout.
Claude with Replo connected: asked to draft a spring sale page and not publish yet, it answers with the drafted /spring-sale page, its hero, three products from the Shopify catalog, the store's checkout and a preview link
Claude drafts the spring sale page with three real products and a preview link, and nothing goes live yet.

How do you build a page in Claude's chat with Replo?

You need no terminal and no files. Replo works inside Claude as a connector, so you build the page from the same chat you use for everything else (Replo for Claude).

  1. Add Replo to Claude. Open the Replo plugin page in Claude and install it, or search for Replo under Plugins. Your Claude plan and workspace need to allow connectors.
  2. Sign in when Claude asks. You can research other brands' ads before you sign in. When you ask about your own sites, Claude shows a Connect card that opens the Replo sign-in.
  3. Ask for a draft. Name the page and say what goes on it, for example: "Draft a spring sale page for Larkhill with three of our blends at 20% off. Don't publish yet." Replo builds it on your brand with products from your connected catalog.
  4. Check the preview. Replo returns a preview link. Ask for changes in the same chat: a new headline, a different product photo, the testimonials higher up.
  5. Publish when it's right. Ask Claude to publish and confirm the step, or publish from Replo yourself. The page goes live with your checkout on your custom domain, or on a replosites.com address until you connect one.

Because the page lives in Replo, it comes with the store side already set up:

  • products from Shopify, with buy buttons that go to your Shopify cart, or Replo checkout for simple products with one-time prices
  • hosting on your custom domain
  • A/B testing that splits visitors between two versions
  • heatmaps on every published page

Replo also works the same way in ChatGPT and Codex.

How do you build a page in Claude Code with Replo's MCP server?

This way suits people who want Claude Code's speed and control without running a store's infrastructure. Claude Code talks to Replo through its MCP server, so it can build and edit your Replo sites, and Replo hosts them.

  1. Add Replo to Claude Code. In your terminal, from the folder you work in, run claude mcp add --transport http replo https://api.replo.app/v1/mcp.
  2. Sign in. Open Claude Code, type /mcp, choose Replo and finish the sign-in in your browser.
  3. Install Replo's skills. Run npx skills add replohq/skills. Skills are short instruction files that teach Claude Code how Replo pages work. Without them, Claude Code doesn't know that Replo pages load product data from Shopify, and it hardcodes the data instead (Replo docs).
  4. Ask for the page. For example: "Use Replo to add a spring sale page to the Larkhill site with three blends from our catalog. Make a draft only and give me the preview link."
  5. Edit the code on your computer, if you want. You can clone a Replo site with Git. Ask Claude Code to clone your site and run it with a live preview. Then push each change back to Replo, so the draft stays in sync (Git overview). Local editing runs on your Claude plan.
  6. Publish as a separate step. Pushing updates the draft, and publishing makes it live. Ask for it, or publish from Replo.

You get real code you can read and change. You also skip the parts of the job that aren't the page: hosting, SSL, the cart handoff and tracking.

How do you build a page with Claude Code from scratch?

This is the fully do-it-yourself path. It gives you full control, and it's the right call when you need something no page builder supports. Plan on several hours to a few days for a page that takes real orders.

  1. Install Claude Code. On macOS or Linux, run curl -fsSL https://claude.ai/install.sh | bash (Homebrew works too), then run claude in your project folder. You need a Claude subscription or an Anthropic Console account.
  2. Scaffold the page. Ask for the structure, for example: "Create a Next.js landing page with a hero, a product grid, reviews and a buy button. Use Tailwind."
  3. Add product data. Hardcode products for a one-off test, or fetch them from your store. For Shopify, that means a Storefront API access token in an environment variable and a query for title, images, price and variants. Lau's scripts took the same route: they pulled every product through the Shopify API before changing a single title.
  4. Wire up the cart and checkout. Send each buy button to your store's cart, or build a cart with Shopify's Storefront API. Test it on a phone with a real order before any ad points at it.
  5. Host the page on your domain. Deploy to a host such as Vercel or Netlify, connect a subdomain like shop.yourbrand.com, and check that SSL is on.
  6. Add tracking. Install your Meta pixel, Google Analytics and any other tags, and make sure purchases are attributed back to the page.
  7. Plan how you'll test it. To compare two versions, add an A/B testing tool and split traffic yourself.
A table covered in repaired DJI drones, each with a pink tag, ready to go back to customers
Repaired drones at Reboot Hub, each with a pink tag before it ships back to its owner. Photo: Reboot Hub

You also maintain each of those steps as code. A product changes price, an API version expires, a pixel stops firing. That ongoing work, more than the first build, is the real cost of this path.

What does a store page need that Claude Code doesn't include?

Use this as a checklist whichever way you build:

  • Real product data: titles, photos, prices, variants and stock that update when your store does.
  • A cart and checkout: buy buttons that land in a checkout shoppers trust, with your discounts applied.
  • Hosting on your domain: fast pages, SSL, and a subdomain your ads can point to.
  • Tracking: your ad pixels and analytics, firing on the page and on the purchase.
  • A way to test: two versions of the page and a fair split of visitors between them.
  • Page speed on phones: load the page on a real phone over cellular before an ad points at it.

In Claude's chat and in Claude Code with Replo's MCP server, Replo covers all six. When you build from scratch, each one is a task on your list.

A Reboot Hub technician at a screen showing a drone circuit board layout, with parts bins on the wall behind
Board-level repair at Reboot Hub. Claude Code handled the store's titles, schema and llms.txt, and the technicians fix the hardware. Photo: Reboot Hub

Which way fits you?

  • You run the store or the marketing, and don't want to code: build in Claude's chat with Replo. You stay in the chat and approve a preview before anything goes live.
  • You're a developer or technical founder who wants code without the infrastructure: use Claude Code with Replo's MCP server. Claude Code does the building, and Replo does the hosting, products and checkout.
  • You're building a custom app or something no builder supports: build from scratch in Claude Code, with the checklist above.

Comparing Claude Code with other AI coding tools such as Cursor, Bolt or Lovable? Our guide to building ecommerce landing pages with vibe code covers each tool. For what a page that sells needs once it's built, see ecommerce landing page best practices.

Build your next landing page in Claude

Add Replo to Claude and ask for your first draft from the chat. See how Replo works in Claude, or start building for free.

Frequently asked questions

Can Claude build an ecommerce website?
Yes, with help. Claude Code can write every page of a store, but it doesn't host the site, hold your products or take payments. Connect it to a platform that does, such as Replo or Shopify, or set up hosting, product data and checkout yourself.
Can Claude Code build a landing page?
Yes. Ask Claude Code for a landing page and it writes the code, runs it on your computer and edits it as you ask. A store page also needs product data, a cart and checkout, hosting on your domain and tracking.
Do I need to code to build a landing page with Claude?
No. In Claude's chat app, add Replo from Claude's directory and ask for a draft page in plain words. Replo builds it with your products and checkout and sends a preview link. Claude Code is the path for people who want to work in code.
How do I connect Replo to Claude Code?
Run claude mcp add --transport http replo https://api.replo.app/v1/mcp in your terminal. Then type /mcp in Claude Code, pick Replo and sign in. Install Replo's skills with npx skills add replohq/skills, so Claude Code builds pages the way Replo expects.
Can Claude publish my landing page?
Yes, when you ask it to and Replo is connected. Ask for a draft first and you get a preview link. Publishing is a separate step that Claude confirms before it runs, or you can publish from Replo yourself.
How do I add a page I made with Claude to my Shopify store?
You have two options. Paste the code into a custom Liquid section in your Shopify theme and rebuild the buy buttons. Or build the page in Replo, which publishes it on your own domain and sends every buy button to your Shopify cart and checkout.
Can I A/B test a landing page built with Claude?
Yes, if it's a Replo page. Replo splits visitors between two versions and shows which one sells more. A page Claude Code writes from scratch needs a separate testing tool, plus its own traffic split and conversion tracking.

Build a page for every ad

Replo builds a landing page that matches each ad, so every click lands on the promise it made.