The ecommerce website pages every online store needs are a home page, collection (category) pages, product pages, a cart, a checkout, an order confirmation page, shipping and returns policies, a privacy policy and terms, a contact page, an FAQ, an about page and a useful 404. Search, account pages, a blog and gift cards come next, once the catalog or customer base is large enough to need them.
This checklist explains what each page must do and what to put on it, then how to build a store like this with Astro, where most pages are static HTML and only the cart and checkout need a commerce backend.
Key Takeaways
- Product pages do most of the selling. They need clear photos, price, availability, variants, delivery information and returns in plain view.
- Policy pages (shipping, returns, privacy, terms) are expected by customers, payment providers and often the law where you sell. Link them in the footer.
- Collection pages carry most of your category search traffic. Give them real introductory text, not just a product grid.
- In Astro, render catalog pages statically and hand cart and checkout to a commerce service such as Shopify, Snipcart or Stripe Checkout.
- Add
Productstructured data to every product page so search engines can show price and availability.
The core shopping pages
Home page
The home page answers three questions in the first screen: what you sell, who it’s for, and why buy here. Below that: best sellers or featured collections, a short trust section (shipping, returns, reviews if you have real ones), and a way into the catalog.
Avoid auto-rotating hero carousels. Many visitors only see the first slide, and the rotation hurts readability and accessibility.
Collection or category pages
These pages list products in a group (“Linen shirts”, “Gifts under $50”). They need:
- A heading and a short paragraph of introduction, which also gives search engines something to rank.
- Filters and sorting once a collection has more than a couple of dozen products.
- Product cards with image, name, price and a clear sale or stock badge.
- Pagination or “load more” for large collections, with crawlable URLs for each page.
Category queries (“organic cotton baby clothes”) often bring more search traffic than individual products, so treat these as landing pages.
Product pages
The page where the decision happens. Every product page should have:
- Several high-quality images, including scale and detail shots, zoomable on mobile.
- Product name, price (including any sale price), and stock status.
- Variant pickers (size, color) that update the price, image and availability.
- A prominent add-to-cart button that stays reachable on mobile.
- Delivery estimate and shipping cost, or a link to the shipping page.
- A short returns summary next to the button.
- A description that answers practical questions: materials, dimensions, care, compatibility.
- Reviews, only if they’re genuine.
- Related or complementary products.
Cart
Shows items, quantities, variant details, line totals and an order subtotal, with easy quantity changes and removal. Show shipping cost or a free-shipping threshold before checkout, not as a surprise at the last step. A slide-out cart drawer keeps shoppers on the product page; a full cart page is better for large orders.
Checkout
Use the checkout your commerce platform provides unless you have a strong reason not to. Hosted checkouts from Shopify, Stripe and others handle payment security, tax calculation, wallets (Apple Pay, Google Pay) and fraud checks. Guest checkout should be available; forcing account creation loses orders.
Order confirmation
After payment: an order number, a summary of what was bought, the delivery address, expected delivery timing and what happens next (a confirmation email, tracking). This page is also where a returning-customer prompt or newsletter signup fits naturally.
The trust and policy pages
These pages are short, rarely visited and essential. Payment providers commonly ask to see them during account review, and customers check them before a first purchase.
| Page | What it covers |
|---|---|
| Shipping policy | Regions, carriers, costs, processing time, delivery estimates, customs and duties |
| Returns and refunds | Return window, condition, who pays return shipping, how refunds are issued and when |
| Privacy policy | What data you collect, why, who you share it with, cookies, customer rights |
| Terms of service | Conditions of sale, pricing errors, liability, governing law |
| Contact | Email, form, response time, business address where required |
Requirements differ by country and region (consumer protection and data privacy rules in particular), so have these pages reviewed for the markets you sell into rather than copying another store’s text.
Link all of them in the footer of every page, and link the relevant one from the product page and checkout.
The supporting pages
FAQ
Collect the questions customers actually email you: sizing, delivery times, international shipping, gift wrapping, order changes. Each answer should be short and link to the full policy where relevant. An FAQ cuts support email and answers objections before the purchase.
About
Who runs the store, where products come from, and why the shop exists. For small stores this page does real work: people buy from people.
Size guide or product guides
For apparel and anything with measurements, a size guide prevents returns. Link it from every relevant product page, right next to the size picker.
404 page
A missing product URL should land on a page with search, best sellers and a link to collections, not a dead end. Discontinued products are better redirected to the closest collection.
Search results
Once a catalog passes a few dozen products, search becomes a primary navigation tool. Results should tolerate typos and show product images. Exclude the results page from search engine indexing.
Pages to add as you grow
- Account pages: order history, addresses, saved payment methods. Usually provided by your commerce platform.
- Wishlist: useful for considered purchases and gifting.
- Blog or guides: buying guides and care articles bring search traffic for questions that come before a purchase.
- Gift cards and wholesale pages if those are part of the business.
- Store locator if you have physical locations.
- Reviews page collecting genuine customer reviews.
Building these ecommerce website pages in Astro
Astro suits stores where the catalog matters for search and speed: product and collection pages render to static HTML at build time, with no JavaScript unless a component needs it. The interactive parts (cart and checkout) come from a commerce service.
| Page | Astro approach |
|---|---|
| Home, about, FAQ, policies | Static .astro or Markdown pages |
| Collections | getStaticPaths() over a products collection, one page per category |
| Product pages | getStaticPaths() per product; images through astro:assets |
| Cart | A small island (client:idle or client:visible) talking to the commerce API |
| Checkout | Redirect to the provider’s hosted checkout |
| Order confirmation | Static page the provider redirects back to |
| Search | Pagefind index, or the provider’s search API |
| Account | Provider-hosted, or on-demand routes with an adapter |
Product data can live in a content collection (JSON or Markdown, good for small catalogs) or be loaded from the commerce platform at build time with a custom loader. With an adapter, you can render stock and price on demand, or use Server Islands to keep the page static while one component loads fresh availability.
A minimal product route from a collection:
---
// src/pages/products/[slug].astro
import { getCollection } from 'astro:content';
import { Image } from 'astro:assets';
import BaseLayout from '../../layouts/BaseLayout.astro';
export async function getStaticPaths() {
const products = await getCollection('products');
return products.map((p) => ({ params: { slug: p.id }, props: { product: p } }));
}
const { product } = Astro.props;
const { name, price, image, description, inStock } = product.data;
---
<BaseLayout title={name} description={description}>
<Image src={image} alt={name} widths={[480, 960]} sizes="(min-width: 960px) 50vw, 100vw" priority />
<h1>{name}</h1>
<p>${price.toFixed(2)}</p>
<p>{inStock ? 'In stock' : 'Out of stock'}</p>
<button type="button" data-add-to-cart={product.id} disabled={!inStock}>Add to cart</button>
</BaseLayout>
Add Product JSON-LD with an Offer (price, currency, availability) to this layout so search results can show price and stock. The JSON-LD guide has the product schema, and the Astro ecommerce options list compares Shopify, Snipcart, Stripe and others for the cart and checkout. For page routing basics, see the Astro pages docs.
If you’d rather start from finished store layouts, Komal Nakrani’s Astro retail and e-commerce themes include home, collection and product page designs as static Astro projects; you connect the commerce service of your choice for cart and checkout.
A launch checklist
- Every product page shows price, stock, variants, delivery and returns.
- Collection pages have unique headings and introductory text.
- Shipping, returns, privacy and terms pages exist and are linked in the footer.
- Checkout works on mobile with guest checkout enabled.
- Order confirmation page and email are tested with a real order.
Productstructured data validates in Google’s Rich Results Test.- The 404 page links to collections and search.
- Discontinued product URLs redirect to a relevant collection.
FAQ
What pages does an ecommerce website need?
At minimum: home, collection pages, product pages, cart, checkout, order confirmation, shipping policy, returns policy, privacy policy, terms, contact, FAQ and about. Search and account pages become necessary as the catalog and customer base grow.
What should be on a product page?
Clear images, name, price, stock status, variant options, an add-to-cart button, delivery and returns information, a practical description, and genuine reviews if you have them. Related products help shoppers continue browsing.
Do I need a separate shipping and returns page?
Yes. Customers check them before buying, payment providers often ask for them, and you can link the relevant page from product pages and checkout. Summarize the key points on the product page as well.
Can you build an online store with Astro?
Yes. Astro renders product and collection pages as fast static HTML, and you add cart and checkout from a commerce service such as Shopify’s Storefront API, Snipcart or Stripe Checkout. Adapters allow on-demand pages for live stock or accounts.
How many pages should an online store have?
There’s no fixed number. The core set is around a dozen pages plus one page per collection and one per product. What matters is that every product and category has its own crawlable URL and every policy a customer might look for is easy to find.