Skip to main content

Specialty and Collectible Product Websites: Drops, Pre-orders and Stock Holds

In this article

A specialty or collectible product website needs five things built differently from an ordinary shop. Stock has to be held the moment an item goes in a basket, because there may be one of it. A release, or drop, has to stay up when hundreds of people arrive in the same minute. Pre-orders need deposits, dates and status updates. Each item often has its own condition and its own photographs rather than a quantity. And the catalogue usually includes sets, build-your-own bundles or made-to-order pieces that a standard product page cannot express.

None of these come in the box on a generic platform, which is why hobby shops end up with a stack of apps that do not talk to each other. This post describes how we build each one into a Django shop and the trade-offs to know before deciding what you need.

The examples cover trading cards, figures, model kits, vinyl, prints and baking tools, because the engineering is the same whenever scarcity, condition and passion drive the purchase.

Stock holds: reserving an item the moment it is added

Where there is one of an item, two shoppers adding it in the same second is the whole business. The basket has to reserve stock, not just remember it, and the reservation has to be atomic so that two requests arriving in the same millisecond cannot both succeed.

The atomic decrement

The reliable pattern is one conditional database update rather than a read followed by a write:

updated = Stock.objects.filter(
    product=product, available__gte=qty
).update(
    available=F("available") - qty,
    reserved=F("reserved") + qty,
)
if updated == 0:
    raise OutOfStock(product)
Reservation.objects.create(
    basket=basket, product=product, qty=qty,
    expires_at=timezone.now() + timedelta(minutes=10),
)

The condition on available__gte and the arithmetic happen inside the database in one statement. So the second shopper's update changes nothing, and they are told the item has gone before they type an address.

Expiry and release

A reservation that never expires is the opposite problem: a closed tab keeps the item out of sale for ever. We give reservations ten minutes, show a visible countdown in the basket, and extend it when the shopper reaches the payment step. A task runs every minute and releases anything expired. The inventory and order management workflow post describes the on-hand, reserved and allocated states this sits on.

Purchase limits

"One per customer" has to be enforced on the server, across the account, the delivery address and the payment method, not in the basket page's JavaScript. Normalise addresses before comparing them (flat numbers, postcodes with and without spaces) or the limit is trivially bypassed.

Surviving a drop

A release at seven on a Friday evening can bring more visitors in two minutes than the shop sees in a normal fortnight. The site survives this by doing almost no work per visitor until the moment they buy.

  • Cache the product and listing pages so the drop page is served from memory. Fetch the live stock count from one small endpoint that hits the database once a second at most. The post on browser, server and CDN caching layers explains which layer does which job.
  • Keep the checkout stateless enough to add servers. Sessions in Redis, media on object storage, no file written to the web server. Then a second application server can be added for the evening and removed afterwards, which is the subject of what load balancing is and when you need it.
  • Queue when demand is certain to exceed stock. For a release of fifty units with thousands of people waiting, a first-come page rewards whoever has the fastest script. In a draw, entries open for a window and winners are picked at random and given a timed payment link. It is fairer, calmer on the servers and much easier to defend to the community.
  • Rehearse. Load test the drop page and the reservation endpoint on staging with the real stock numbers.

Keeping bots out without punishing collectors

Resellers' scripts buy stock faster than any human can, and the community notices when they win. The defences that work are layered and mostly invisible to genuine shoppers.

  • Rate limiting on the add-to-basket and checkout endpoints, per account and per IP.
  • A hidden form field that humans never fill in; a submission with it filled is discarded.
  • A challenge such as Cloudflare Turnstile at the payment step only, where a few seconds of friction costs nothing.
  • Account age and order history as inputs to the purchase limit, so a hundred accounts created on drop day do not each get one.
  • No endpoint that reveals stock levels or product URLs before the drop goes live.

We avoid a captcha on every page or a forced login to browse; collectors remember being treated as suspects.

Pre-orders, deposits and the rules around them

Collectors are used to paying months before an item exists, so the shop has to take money in a way that is fair, workable for cash flow and legal.

  1. Deposit now, balance later. Take a deposit through Stripe and save the payment method for an off-session charge when the stock arrives, or send a payment link for the balance. The saved-card route needs the first payment set up for future use so the bank has authenticated it; the link route is simpler and tolerates expired cards.
  2. Dates and status that update themselves. An estimated release date on the product page, a status on the order (announced, in production, shipped from the maker, arrived, dispatched) and an email on each change. Most "where is my pre-order" emails disappear when the status is visible in the account.
  3. Cancellation rights apply. Under the Consumer Contracts Regulations a consumer can cancel a distance contract from the moment it is made until 14 days after the goods arrive. So a pre-order deposit from a consumer is refundable if they cancel. Build the refund into the account area rather than making people email for it.
  4. Allocate pre-orders before general stock. When a shipment of 200 arrives against 180 pre-orders, the system allocates the 180 first and only then shows 20 as available.

One-of-a-kind stock: condition, photographs and sold-out pages

A standard shop has a product with a quantity. A collectibles shop often has a product with a list of individual units, each with its own grade, box condition, serial number, provenance and photographs. We model that as a Product (the card, the figure, the pressing) with child Item records, each sellable once. The listing can then show "three available from £45" while each unit is sold on its own photographs.

Those photographs do the selling. Collectors want the corners of the box, the paint on the face and the surface of the card at full size. Serve the large images in AVIF or WebP with JPEG fallback and lazy-load everything below the first. The comparison of WebP, AVIF and JPEG XL covers the sizes you can expect. Zoom should open the full-resolution original, not an upscaled thumbnail.

When the last unit sells, keep the page live. It carries the search ranking for the item name. It is where the "notify me when one comes in" form lives, and it can show the other items in the same set or series. A 404 on a sold item throws all of that away. The guide to product pages that convert covers the rest of what belongs on the page.

Sets, bundles and made-to-order items

Hobby catalogues rarely fit "one product, one price". Stamp and Bake is a shop for food-safe 3D-printed character cookie cutters that ships from Bristol to the UK, Europe, the USA, Canada and Australia. It is a good illustration of the three patterns we see most.

  • Sets. Stamp and Bake lists 65 products from £6.99, nearly all of them fixed sets. Each set is one product with its own price and its own stock count. A shop that also sold the same cutters singly would need each set's stock worked out from its components, so that a set could not be sold when one cutter in it was out.
  • Build-your-own bundles. The shopper picks a fixed number of cutters and one bundle price applies. In the code that is a bundle product whose picks are made on the product page and checked again on the server. Stamp and Bake's code supports this, though no bundles are on sale at the moment.
  • Custom orders. A custom cutter goes through a quote-and-approve process. The customer describes the design through the shop's enquiry form, usually gets a quote within one to two working days, approves a preview, pays, and only then does production start. On Stamp and Bake the quote and approval happen by email; a shop taking more custom work could build those steps into a small workflow of its own, which no off-the-shelf product page can do.

The same shop shows prices in 22 currencies and takes Stripe with Apple Pay and Google Pay. It shows the Royal Mail postage in the cart and posts orders within two to three working days. Every one of those is a decision made in the code of the online shops we hand-code rather than an app with a monthly fee. If you are comparing that with a platform plus a drops app, a pre-order app and a bundle app, the Shopify versus custom shop comparison sets out the differences. The Shopify versus custom cost calculator adds the app fees up over a few years.

Questions people ask

How long should a basket hold an item?

Long enough to pay, short enough that abandoned baskets do not block sales: ten minutes from adding, extended when the shopper reaches payment, is a sensible default. For drops, five minutes with a visible countdown keeps stock moving.

Is a draw better than first-come-first-served for a limited release?

When demand clearly exceeds stock, yes. A draw removes the advantage of scripts and fast connections, spreads the load over a window instead of a second, and gives every entrant the same chance.

Can I take non-refundable deposits on pre-orders?

Not from consumers buying at a distance. They can cancel until 14 days after delivery and are entitled to their money back. You can set a deposit high enough to discourage casual orders, but it has to be refundable on cancellation.

Should sold-out products be hidden?

No. Keep the page, mark it sold out, add a notify-me form and show related items. The page keeps its ranking and the form tells you what to source next.

Where to start

Write down which of the five problems you actually have. A print shop may need only bundles and good images; a card shop needs per-item stock and holds. A figure importer needs pre-orders and a status pipeline; a shop doing releases needs the drop and bot work. Build those and skip the rest.

Then run your next release as if it were a drop, whatever the size. The reservation code, the cache and the limit enforcement are easiest to prove on a release of twenty units, and painful to discover on one of two thousand.