Electronics Ecommerce Solutions: What a Gadget Shop Needs Built Differently
In this article
Electronics ecommerce solutions are judged on things a general shop never has to think about. Shoppers search by model number and expect the right product whether they type the hyphen or not. They compare on specifications, so those have to be data, not paragraphs. They filter by a dozen attributes, which can quietly create thousands of duplicate pages. Stock comes from suppliers' feeds as often as from your own shelves. And orders are high in value, which attracts fraud and makes a single mistaken dispatch expensive.
An off-the-shelf platform gives you a product with a title, a price and a description. Everything in the list above is either an app, a workaround or custom code. This post sets out what a gadget shop needs built differently and how we build it in Django. It also covers the UK rules for selling electrical goods that the software has to support.
Search that understands model numbers
A shopper who types "wh1000xm5" wants the headphones listed as WH-1000XM5. Another types the EAN from a price comparison site, another the supplier's part number, another "xm5 case". Default search matches the product title as text and fails all four.
The fix has three parts. Store every identifier against the product: manufacturer part number, GTIN or EAN, the supplier's SKU, and a list of aliases for the names people actually use. Normalise the query and the stored identifiers the same way, stripping hyphens, spaces and case, so punctuation stops mattering. Then search with trigram similarity rather than exact matching, so a typo or a partial still finds the product. In PostgreSQL that is the pg_trgm extension, and in Django it is a few lines:
Product.objects.annotate(
score=Greatest(
TrigramSimilarity("search_name", q),
TrigramSimilarity("identifiers", q),
)
).filter(score__gt=0.3).order_by("-score")
Where search_name and identifiers are pre-normalised columns kept up to date on save. A zero-results page should show the closest matches and the category the query looks like, never an empty page. A shopper with a model number has already decided to buy.
Specifications as data, not paragraphs
A laptop has forty attributes. If they live in a description paragraph, nothing else can use them. Filters cannot read them, comparison tables cannot align them, Google Shopping feeds cannot be generated from them and the product schema cannot include them. There are three ways to store them, and the choice shapes everything built on top.
| Approach | Filterable | Comparable across products | Feeds and schema | Cost to maintain |
|---|---|---|---|---|
| Specs in the description text | No | No | No | Lowest, until you need any of the above |
| A JSON field per product | Partly, with indexes | Only if keys are consistent | Possible with mapping | Low, but drifts without rules |
| Attribute and value tables per category | Yes | Yes | Yes, directly | Highest set-up, lowest ongoing |
For a shop with more than a few hundred products we build the third. A category defines its attributes (screen size in inches, RAM in GB, refresh rate in Hz), each with a type and a unit. Every product in the category stores one value per attribute.
Imports from supplier spreadsheets are validated against the definitions, so "16 GB", "16GB" and "16" all land as the number 16. The comparison table, the filters, the Merchant Center feed and the structured data are then generated, not written. The product schema guide for ecommerce shows how the GTIN and brand from those fields make a product eligible for merchant listings in search.
Filters that help shoppers without wrecking SEO
Faceted navigation is where electronics shops lose rankings without noticing. Brand, screen size, RAM, storage, price band and colour, combined freely, produce tens of thousands of URLs that all show subsets of the same category. Google crawls them, finds them near-identical, and spreads the category's authority across the lot.
- Give each single-facet page that has search demand its own clean URL and title ("14-inch laptops", "laptops with 32GB RAM"), with its own short introduction.
- For every multi-facet combination, keep the page usable but point its canonical tag at the parent category or the first facet. Keep the sort and price-range parameters out of the index altogether.
- Apply the filters without a full page load, but keep real links in the markup so the single-facet pages are crawlable.
The post on canonical tags versus 301 redirects explains which signal to use for each case.
Stock, supplier feeds and launch days
Few electronics shops hold everything they list. A typical catalogue is a mix of stock on the shelf, lines drop-shipped from a distributor, and items on a lead time. Each needs its own availability rule, and the shop needs to know which one applies to every product.
Supplier feeds arrive as CSV on an FTP server, as an API, or as an emailed spreadsheet. Each has to be pulled on a schedule, mapped to your products by part number and used to update stock and cost price with a log of every change. When a distributor's feed says zero, the product should switch to "available to order, 5 to 7 days" or go off sale automatically. It should never sit at "in stock" because nobody checked. The introduction to APIs and when a website needs one covers how those connections are built and kept reliable.
Launch days for a new console or graphics card behave like collectible drops: hundreds of people arriving in a minute for a fixed allocation. Stock must be held atomically when it goes into a basket, limits must be enforced on the server, and the product page must be cached. The post on drops, pre-orders and stock holds for specialty shops has the code for the hold.
High-value orders and fraud
A stolen card buys a laptop far more often than it buys a jumper, because the laptop resells. The shop needs controls that a jumper shop can skip. The jumper shop has its own problems, mostly returns, which our guide to fashion ecommerce websites covers.
- A manual review queue for first orders above a value you set, orders where the billing and delivery countries differ, and addresses that have been edited after a decline.
- Delivery to the billing address only, or a signature on delivery, for the first high-value order from a new customer.
- Serial numbers recorded against the order line at dispatch, so a chargeback or a return can be matched to the exact unit and so warranty claims can be verified.
- Tracking references kept on every order, because proof of delivery is what decides a dispute.
Card data itself should never touch the shop. The post on secure payment integration with Stripe explains hosted checkout, signed webhooks and idempotent handlers, which matter even more when one duplicated order is a four-figure loss.
The compliance list for electrical goods
- WEEE take-back. A UK retailer of electrical and electronic equipment has to offer customers a way to return old equipment of the same type when they buy new. That can be done directly or through a distributor take-back scheme. The site should say how, and the returns flow should be able to book it.
- Product marking and safety. Products need the correct conformity marking for the UK market. The shop should record who the responsible person is for each import so that a safety query can be answered.
- Batteries and shipping. Carriers restrict lithium batteries. Royal Mail does not carry loose lithium batteries and has conditions for batteries packed in or with equipment. So the product record needs a battery flag that drives the available delivery options rather than a human remembering.
- Faulty goods. The Consumer Rights Act gives a short-term right to reject faulty goods for a refund and longer rights to repair or replacement. Serial numbers and purchase dates in the order record make those claims quick to handle.
- Cancellation and price display. The 14-day cancellation right for distance sales under the Consumer Contracts Regulations applies to electronics as to anything else, and consumer prices must be shown with VAT included.
Accessories that actually fit
Electronics is the category where the second item in the basket is most natural. The lens needs a filter, the console needs a second controller, the laptop needs the right charger. A generic "related products" widget suggests things that are popular, not things that fit.
Fit is data: a compatibility relation between products ("this case fits these three phones", "this RAM is for these motherboards") that the attribute tables above make possible. With it, the product page can show accessories that are guaranteed to work, the bundle builder can price a kit, and the returns caused by wrong accessories drop. Without it, the shop is guessing, and the shopper can tell.
All of this sits inside the Django online shops we build as ordinary parts of the data model, which is the point. In an electronics shop the catalogue is the product, and the catalogue has to be built as a database rather than a list of pages.
Questions people ask
Why does my shop's search not find model numbers?
Because it matches the product title as text, and model numbers are typed with and without hyphens, spaces and prefixes. Store the identifiers separately, normalise both sides, and use similarity search rather than exact matching.
Should I drop-ship or hold stock?
Most electronics shops do both. Hold the lines that sell every week and drop-ship the long tail. Make sure the shop knows which is which so the delivery promise on each product page is true.
Do I have to take back old electricals?
Yes. Under the UK WEEE regulations a retailer must offer customers a way to return equipment of the same type when they buy new. That can be done directly or through a distributor take-back scheme.
How many filters should a category page have?
As many as shoppers use, which the analytics will tell you, but only one or two of them should produce indexable pages. The rest should be applied on the page with canonical tags pointing back to the category.
Where to start
Start with the catalogue data. Define the attributes per category, load the identifiers for every product, and normalise them. Search, filters, feeds, schema and compatibility all follow from that one piece of work, and none of them can be done well without it.
Then add the controls money depends on: the review queue, serial numbers at dispatch and the battery flag on delivery options. The design can come after; a shopper with a model number does not care about the hero image.