Fashion Ecommerce Websites: Sizes, Variants and Returns Built to Scale a Brand
In this article
A fashion ecommerce website scales a brand when four things are built properly:
- Variants, so that every size of every colourway has its own stock and its own images.
- Returns, because clothing comes back more than anything else sold online and the returns flow is where margin is won or lost.
- Filters and images that stay fast and crawlable as the catalogue grows.
- The extras a growing label needs, such as drops, wholesale accounts and selling abroad in the shopper's currency.
Platforms handle the first product with ten variants well. They strain at two hundred products with sixty variants each, a returns rate in double figures and a wholesale side. The strain shows as a stack of monthly apps that each hold part of the data. This post describes what we build differently for fashion shops in Django and why, in the order that usually matters.
Variants: size and colour as data, not options
The data model is the decision everything else depends on. A platform's "options" model gives you a product with a size option and a colour option and generates the combinations. That is fine until you need an image set per colour, a different price for the extended sizes, stock per variant visible on the page, or a barcode per unit for the warehouse scanner.
We model three levels. A Product is the style: the name, the description, the fabric, the care instructions, the size guide. A Colourway belongs to a product and owns the photographs and the swatch. A Variant belongs to a colourway and owns the size, the SKU, the barcode, the stock figures, the weight and any price override. The page the shopper sees is the product with a colourway selected; the basket holds variants. That structure makes every awkward requirement ordinary:
- Stock per size shown on the page, with "only 2 left" where it helps and "notify me" on the sizes that are out, tied to the exact variant.
- Sold-out sizes shown but not selectable, so a shopper can see the size existed and ask to be told when it returns.
- A colourway sold out entirely stays on the product page as a swatch with a waiting list, and the product page stays live because the style still ranks.
- Size guides per product type (tops, trousers, footwear) in centimetres and inches, with the garment's measurements rather than only body measurements, because the garment measurement is what reduces returns.
- International size equivalents (UK, EU, US) stored once per size and rendered on every product that uses it.
Variant structured data follows from the same model: Google's product variant markup groups the sizes and colours under one product so that search can show the right one. The guide to product pages that convert covers the rest of what the page needs beyond the selector.
Returns: the flow that decides the margin
Clothing is returned because it did not fit, did not look like the photograph, or arrived after the occasion it was bought for. All three are reduced by data the shop already holds, and the returns flow is where that data comes from.
- A self-service returns portal. The customer enters the order number and email and ticks the items. They pick a reason from a short list (too small, too large, not as pictured, changed mind, faulty) and get a returns label generated through the carrier's API. No emails, no printed forms.
- Exchange before refund. If the reason is size, the portal offers the other size first, holds that variant's stock for the exchange, and only refunds if the exchange is declined. A return that becomes an exchange keeps the sale.
- Refund on receipt, automatically. When the warehouse scans the returned barcode, the item goes back into stock. The refund is issued through Stripe with an idempotency key, so a second scan cannot refund twice.
- Reasons that feed the product page. If a style is returned as "too small" far more than its neighbours, the page gains a fit note ("runs small, consider sizing up") and the size guide is checked. This loop is the single most effective way to bring the returns rate down, and it only exists if the reasons are structured.
The law sets the floor. Under the Consumer Contracts Regulations a consumer has 14 days from receiving the goods to cancel for any reason. They must be refunded, including basic delivery, within 14 days of the goods coming back. Sealed goods opened after delivery can be excluded for hygiene reasons, which covers earrings and swimwear with the seal removed, but not ordinary clothing that has been tried on. Most brands offer longer than 14 days, and the portal should apply whatever the policy is without a person checking dates.
Images and speed as the catalogue grows
A fashion catalogue is image-heavy by nature: five to ten photographs per colourway, a lookbook, campaign video. Done carelessly, the category pages become the slowest on the site.
- Every upload is converted on the server to AVIF and WebP at a fixed set of widths, with a JPEG fallback, so no original is ever served to a phone. The free image format tester shows the size difference on one of your own product photographs.
- Category grids lazy-load everything below the first row and reserve space for each image so the page does not jump. The post on lazy loading images without hurting the experience covers the attributes and the pitfalls.
- Colourway swatches swap the image set without a page load, but each colourway also has its own URL so that campaign links and search results land on the right colour.
- Video is streamed from a dedicated host, never uploaded to the web server, and the poster frame is an image so the page is complete before the video arrives.
Filters that do not flood the index
Size, colour, price, fabric, length, occasion and sleeve type are all useful filters and, combined, they create thousands of near-duplicate URLs. Search engines crawl them, find the same products in different orders, and the category's ranking is spread thin. The approach that works is to give single filters with search demand a clean URL and a title ("black midi dresses", "linen shirts"). Every multi-filter combination's canonical tag points at the parent. Size and sort parameters stay out of the index entirely, since nobody searches for "dress size 12 sorted by price". The post on canonical tags versus 301 redirects goes through which signal fits each case.
Drops, pre-orders and limited runs
Many labels release in collections or limited runs, and a release behaves like a collectible drop: a crowd arriving in a minute for fixed stock. The shop needs stock held atomically when a variant goes into a basket, and a timed reservation that expires. It needs per-customer limits enforced on the server, and cached product pages so the crowd does not reach the database.
Pre-orders need a deposit or full payment with a stated delivery window and a cancellation right that runs until 14 days after delivery. The post on drops, pre-orders and stock holds has the code for the hold and the reasons for a draw over first-come when demand clearly exceeds the run.
Selling abroad and selling to trade
Both arrive once the brand is known, and both are hard to add to a platform afterwards.
International customers
Show prices in the shopper's currency and charge what they saw. Stamp and Bake is a Bristol shop that ships to the UK, Europe, the USA, Canada and Australia. It shows prices in 22 currencies and takes Stripe with Apple Pay and Google Pay, and the same approach suits a clothing label. Work postage out in the basket by destination, say clearly whether duties are included, and make sure a size guide switches to the shopper's convention. If you translate or build country-specific pages, the guide to hreflang tags for international SEO explains how to tell search engines which page is for whom.
Wholesale accounts
Stockists want a login that shows trade prices, pack sizes, minimum order quantities, a line sheet to download and payment on account or by invoice rather than card. Built into the same shop, wholesale orders draw from the same stock and the same product data as retail, which is the point. A separate wholesale system is where oversells come from.
What the apps add up to
On a platform, each item above tends to be an app: variant images, size guides, back-in-stock alerts, a returns portal, wholesale pricing, currency display, pre-orders. Each has a monthly fee, some take a cut of sales, and each holds part of your data in a place you do not control.
The Shopify versus custom ecommerce comparison sets out when that trade is still worth it and when it is not. The Shopify versus custom cost calculator adds the fees up over one, three and five years. On the online shops we hand-code, every item above is part of one data model, with no platform fees and no cut of sales. The code belongs to the brand once the project is paid for.
Questions people ask
How should a fashion shop handle sizes that sell out?
Show the size, disable it, and offer a notify-me form tied to that exact variant. Keep the product page live. Hiding sold-out sizes makes shoppers think the range is smaller than it is, and hiding the product loses its ranking.
Can a clothing shop refuse returns of items that have been tried on?
Not within the 14-day cancellation period for distance sales. Trying on is treated like handling in a shop. You can deduct for use beyond that, and you can exclude sealed hygiene items whose seal was removed, but you cannot refuse a tried-on jumper.
Do I need a separate website for wholesale?
No, and it is usually a mistake. A trade login on the same shop, with its own prices and order rules, keeps one stock figure and one product catalogue.
How many product photographs does each colourway need?
Enough to answer fit, fabric and back view: typically front, back, side, a detail of the fabric and one on a model with the size they are wearing stated.
Where to start
Get the variant model right first, because stock, images, returns, wholesale and structured data all hang off it, and migrating it later means touching every order. Then build the returns portal with structured reasons, because the fit notes that reduce returns come from nowhere else.
Speed and filters are the ongoing work: review the slowest category pages and the indexed filter URLs every quarter, as the catalogue grows, rather than once at launch.