Community Article
Community articles are authored by SitePoint Premium contributors. Content is screened before publication, and SitePoint reserves the right to moderate or remove articles that violate our guidelines. Views expressed are those of the authors and do not necessarily reflect those of SitePoint.
Retail Merchandising Principles for Web Designers and Developers: Display Design, Ranking Rules and Measurement
DJDiv JohnPublished inWeb·Developer Tools·
November 18, 2026
·Updated:November 18, 2026
The AI briefing for Developers
Stay up to date with AI tools, model releases, and developer workflows that matter.
Weekly. Free. One click to leave.
SitePoint Premium
Stay Relevant and Grow Your Career in Tech
- Premium Results
- Publish articles on SitePoint
- Daily curated jobs
- Learning Paths
- Discounts to dev tools
7 Day Free Trial. Cancel Anytime.
Every e-commerce grid, product page and checkout screen is a shelf. Merchandisers have spent decades working out what to put at eye level, how many choices to show and how to tell whether a display works, and web teams are now rebuilding the same logic in code: sort orders, pinned products, badges, filters and A/B tests. Knowing where those ideas came from helps you build them with fewer mistakes.
This article maps physical retail merchandising onto digital product design. It covers visual hierarchy and choice load in listing UIs, a small rule-based ranking function you can test, accessible price and badge design with a contrast checker, and a significance test for layout experiments. It also covers why good plans fail at the handoff between design, engineering and operations. The numbers in the examples are illustrative, so use your own data. The code was run with Node.js 22.
Key Takeaways
- A listing page is a shelf. Position, grouping and contrast decide what gets seen, and the same rules apply in a store and in a grid.
- Make merchandising rules explicit in code. Pins, boosts, brand caps and stock demotion are easier to test and review than a pile of CSS order hacks.
- Fewer, clearer choices usually win. Curate the first screen and let filters handle the long tail.
- Accessibility is part of merchandising. Price labels, sale badges and stock messages must be readable, and a contrast check can run in CI.
- Measure with a proper test. Compare a variant with a control and check significance before you ship a layout change.
What Merchandising Covers, in Developer Terms
Merchandising shapes how products are displayed, promoted and made accessible across sales channels. A well-planned strategy considers visual hierarchy, packaging, promotional materials, inventory timing and consistency between locations. For example, a skincare product may struggle to convert if testers are missing, shelf information is unclear or displays arrive after a campaign begins. If you build for the web, nearly every one of these problems has a direct counterpart:
| In a physical space | Equivalent in a digital product | What you build |
|---|---|---|
| Shelf position and eye level | Above-the-fold placement and sort order | Ranking function, pinned slots, layout grid |
| Signage and price cards | Headings, labels and price display | Product card component, design tokens |
| Product grouping | Navigation structure and filters | Category tree, facets, collections |
| Testers and samples | Demos, previews and trials | Quick view, image zoom, free trial flow |
| Planogram | Wireframe or layout spec | Component spec and page template |
| Display guide for stores | Design system and component library | Documented components with usage rules |
| Restocking and compliance checks | Release checks and QA | Stock sync, visual regression, CI checks |
Visual Hierarchy in a Listing UI
Customers scan before they read. Nielsen Norman Group defines visual hierarchy as the arrangement of elements so the eye moves through them in order of importance, and names color and contrast, scale and grouping as the main tools. On a shelf, a larger facing or a contrasting background makes the hero product visible first. In a product grid, the equivalents are a larger card for a featured item, a clear boundary around a bundle, and a restrained use of badges so that only one or two items carry emphasis.
A common mistake is giving every card a badge, a color and a call to action. When everything is emphasized, nothing is, and the page reads like a crowded table in a store. Treat emphasis as a limited re screen may show
A premium item placed beside entry-level alternatives may lose perceived value, and a crowded display can make fresh products look less appealing. Hick’s Law states that the time to make a decision increases with the number and complexity of choices, and its practical advice is to reduce options when speed matters and to highlight recommended ones. In a listing UI that suggests a curated first screen with a clear sort label, a few high-confidence recommendations and filters that handle the long tail, rather than an unbroken wall of products. Hick’s Law is a guide, not a rule, so treat it as a hypothesis to test on your own audience.
Encode Merchandising Rules in Code
Merchandisers often ask for things like “pin the new range to the top, boost this collection, never show more than two items from one brand in a row, and push sold-out items down”. Implemented as scattered CSS order values and one-off queries, these requests become hard to audit. A small, pure function keeps the rules explicit and testable.
exportfunctionrankProducts(products, rules ={}){const{ pinned =[], boosts ={}, maxPerBrand =2, demoteOutOfStock =true}= rules;constscore=(p)=>{let s = p.popularity??0;s += boosts[p.id]??0;return s;};const pinnedItems = pinned.map((id)=> products.find((p)=> p.id=== id)).filter((p)=> p && p.stock>0);const pinnedIds =newSet(pinnedItems.map((p)=> p.id));const sorted = products.filter((p)=>!pinnedIds.has(p.id)).sort((a, b)=>score(b)-score(a)|| a.id.localeCompare(b.id));const rest = demoteOutOfStock ? sorted.filter((p)=> p.stock>0): sorted;const soldOut = demoteOutOfStock ? sorted.filter((p)=> p.stock<=0):[];const out =[...pinnedItems];const perBrand ={};for(const p of pinnedItems) perBrand[p.brand]=(perBrand[p.brand]??0)+1;const overflow =[];for(const p of rest){if((perBrand[p.brand]??0)>= maxPerBrand){ overflow.push(p);continue;}perBrand[p.brand]=(perBrand[p.brand]??0)+1;out.push(p);}return[...out,...overflow,...soldOut];}Because the function has no side effects, a short test can check every rule. This one confirms that pinned items lead, a pinned item that is out of stock is skipped, the brand cap pushes a third item from one brand behind other brands, sold-out items go last and a boost can lift a weaker product:
importassertfrom'node:assert/strict';import{ rankProducts }from'./rank.mjs';const items =[{id:'a',brand:'X',popularity:90,stock:5},{id:'b',brand:'X',popularity:80,stock:5},{id:'c',brand:'X',popularity:70,stock:5},{id:'d',brand:'Y',popularity:60,stock:5},{id:'e',brand:'Z',popularity:95,stock:0},{id:'f',brand:'Z',popularity:10,stock:5},];constids=(r)=> r.map((p)=> p.id);assert.deepEqual(ids(rankProducts(items,{pinned:['f']})).slice(0,1),['f']);assert.ok(!ids(rankProducts(items,{pinned:['e']})).slice(0,1).includes('e'));const r =ids(rankProducts(items));assert.ok(r.indexOf('d')< r.indexOf('c'));assert.equal(r.at(-1),'e');const boosted =ids(rankProducts(items,{boosts:{d:50}}));assert.ok(boosted.indexOf('d')< boosted.indexOf('b'));console.log('rank tests passed');The design decision here is that stock demotion and the brand cap are defaults, while pins and boosts are inputs a merchandiser can change without a deploy, for example from a config file or admin screen. A real system would also log which rule moved each item, so that someone can answer why a product appears where it does.
Readable Information: Price Labels, Badges and Contrast
Price cards and shelf labels are text, and text needs contrast. The WCAG contrast requirement asks for at least 4.5:1 for normal text and 3:1 for large text. Product cards are a place where this slips, because grey secondary prices and pastel sale badges look refined in a mockup. The following script computes the WCAG contrast ratio, so you can run it over your design tokens in CI.
constlin=(c)=>(c /=255)<=0.03928? c /12.92:((c +0.055)/1.055)**2.4;constlum=(hex)=>{const[r, g, b]=[1,3,5].map((i)=>lin(parseInt(hex.slice(i, i +2),16)));return0.2126* r +0.7152* g +0.0722* b;};exportconstcontrast=(fg, bg)=>{const[hi, lo]=[lum(fg),lum(bg)].sort((x, y)=> y - x);return(hi +0.05)/(lo +0.05);};console.log(contrast('#767676','#ffffff').toFixed(2));console.log(contrast('#595959','#ffffff').toFixed(2));console.log(contrast('#d94f70','#ffffff').toFixed(2));It prints 4.54 for mid grey #767676 on white, which just passes for normal text, 7.00 for #595959, which would also meet the stricter enhanced level, and 3.96 for the pink #d94f70, which fails for small badge text but would pass for large text. A sale badge that fails the check should be fixed in the token, not on one page.
Strategy Only Works When Execution Follows
A useful display respects the realities of the sales environment: floor space, customer movement, staff workload, replenishment access and how much information shoppers can absorb at a glance. The digital version is the gap between the design file and what ships. Test the setup with the people who will use it, not only with the team that created it, because their feedback reveals practical problems before a wide rollout.
A polished plan can fail in practice when materials arrive late, displays are assembled incorrectly or teams miss replenishment. On the web, the matching failures are a promotion that goes live before its product data is synced, a badge that stays on after a sale ends, and a hero banner that links to a discontinued item. Execution needs coordination across marketing, suppliers, logistics and engineering, with clear instructions, realistic schedules, display standards and checks. Some companies outsource this kind of field merchandising. One provider’s services page, for example, lists planogram and retail resets, end-cap displays, signage placement, on-shelf availability, in-store audits and visit reporting. Whether or not you hire help, that list is a useful checklist of what execution involves, and most items have a digital twin you can automate: availability checks, expiry dates on promotions and audit reports. Treat any performance figures on vendor pages as the vendor’s own claims and ask for evidence before relying on them.
Timing matters most for seasonal promotions and limited windows. A campaign that goes live after peak demand has passed cannot deliver the same value, so give promotional content a start and end date in the data model and have a scheduled job remove it, rather than relying on someone to remember.
Measure Layout Changes Like a Product Team
Sales alone cannot tell you whether visibility, placement, stockouts, confusing information or poor setup caused a result. For a web listing, the answer is a controlled experiment. The script below compares conversion for a control grid and a variant with a two-proportion z-test, a standard way to check whether a difference is larger than chance would explain.
exportfunctioncompare(a, b){const pa = a.conversions/ a.visitors;const pb = b.conversions/ b.visitors;const pooled =(a.conversions+ b.conversions)/(a.visitors+ b.visitors);const se =Math.sqrt(pooled *(1- pooled)*(1/ a.visitors+1/ b.visitors));const z =(pb - pa)/ se;return{rateA: pa,rateB: pb,relativeLift:(pb - pa)/ pa, z,significant:Math.abs(z)>1.96};}const r =compare({visitors:4000,conversions:120},{visitors:4000,conversions:156},);console.log({control:(r.rateA*100).toFixed(2)+'%',variant:(r.rateB*100).toFixed(2)+'%',lift:(r.relativeLift*100).toFixed(1)+'%',z: r.z.toFixed(2),significant: r.significant,});With these illustrative numbers, conversion rises from 3.00 percent to 3.90 percent, a relative lift of 30.0 percent, and the z value of 2.21 exceeds the 1.96 threshold for roughly 95 percent confidence. That does not prove the curated grid is better in general. It says this difference is unlikely to be noise for this test, and it assumes you fixed the sample size in advance and did not stop the moment the result looked good. Use a proper experimentation platform or a statistician for anything with real revenue at stake.
Experiment discipline
- Change one thing at a time. Test a single meaningful change, such as position, grouping or card layout, so the result can be attributed.
- Use comparable segments and periods. Randomize users, and note seasonality and running promotions.
- Record the result. Keep a short log of what changed, for whom, for how long and what happened.
- Watch behavior, not just totals. Session recordings and support questions show confusion that conversion numbers will not.
- Do not assume a result transfers. A layout that won on desktop may not win on mobile, and one that worked in one market may not work in another.
A Design System Is a Display Guide
A strong merchandising operation does not require a large budget. A simple guide for product priorities, layout, pricing, replenishment and approved materials keeps execution consistent, and it is the physical version of a design system: a small set of approved components and rules that make the correct result the easy path. For a product card, that means a documented component with a fixed set of badge types, a defined maximum of emphasized items per screen and tokens that already pass the contrast check.
Consistency also protects trust. Damaged fixtures, inconsistent packaging, missing prices and outdated signs make good products look poorly managed, and the digital equivalents are broken images, stale prices and mismatched labels between the listing and the product page. Aim for consistency, not identical pages: a mobile grid and a kiosk screen can differ, but they should share product priorities, visual identity and core messages.
Kiosks, Pop-Ups and Point-of-Sale Screens
Temporary and in-store selling spaces demand quick communication. Visitors move fast, attention is limited, and interfaces must be clear from a distance and forgiving of mistakes. If you build kiosk, tablet or point-of-sale software, these constraints shape the interface:
- Show bestsellers first and keep prices readable at arm’s length or farther.
- Make payment straightforward and keep the number of steps small.
- Limit how many products compete for attention. A selected range is easier to browse than a crowded one.
- Design for flaky connectivity, with a clear offline state and safe retries.
- Make it easy for staff to restock, correct a price and answer questions without leaving the screen.
Fix the Basics Before Redesigning Everything
When results disappoint, audit the real experience before commissioning a redesign. Think like a first-time customer: is the offer clear, are premium items distinct and can the team maintain the page easily? Government small-business guidance offers concrete analogues. The Queensland Government’s retail display guidance recommends showing essential information and prices so customers can decide quickly, placing popular or profitable items at eye level, and refreshing window displays every two to four weeks. The Westminster City Council guide similarly links visual merchandising, layout and planned promotions to attracting customers and encouraging them to spend more time and money in a business.
| Check | Question to ask | Possible fix |
|---|---|---|
| Visibility | Can a first-time visitor spot the key product without scrolling? | Adjust position, scale or contrast |
| Pricing | Is every price present, correct and legible? | Fix the data, then check contrast tokens |
| Stock | Are sold-out and discontinued items handled? | Demote or hide them in the ranking rules |
| Materials | Are banners, badges and images current? | Add end dates and an automated cleanup |
| Compliance | Does the page match the component spec? | Add visual regression tests |
| Choice load | Are too many items competing? | Curate the first screen and use filters |
Prioritize visibility, clarity, stock accuracy and consistent execution before investing in a full redesign. Small operational improvements can make a meaningful difference, especially when they remove obstacles that repeatedly interrupt the buying process.
Limits of This Guidance
The public guidance cited here was written for general small-business use, and UX principles such as visual hierarchy and Hick’s Law come from interface research, so they are useful analogies rather than guarantees. The code is a teaching sketch: it ignores personalization, pagination, caching, search relevance and many other concerns of a production ranking system. Results vary with category, audience and device, so test changes in your own setting and treat any benchmark as a starting point.
What is merchandising in e-commerce? It is how products are displayed, ordered, promoted and made accessible across a site or app, including layout, labels, badges, sort rules and inventory handling.
How does visual hierarchy apply to a product grid? The same tools apply: contrast, scale and grouping decide what the eye sees first and which products read as related.
What should I measure first? Start with conversion, add-to-cart rate and stock availability for the listing, then add average order value and revenue per visitor once the basics are tracked.
How do I know a layout test is reliable? Fix the sample size in advance, randomize users, run it long enough to cover weekly patterns and check significance, for example with the two-proportion test above.
Do small teams need a big design system? No. A short component guide with a few badge types, spacing rules and accessible color tokens is enough to keep pages consistent.
Conclusion
Merchandising is applied interface design with a long history. Clear hierarchy, a curated first screen, readable prices, explicit ranking rules and controlled experiments carry over directly from the shelf to the screen. For designers and developers, the practical lesson is that a good layout only counts if it ships correctly, stays current and is measured. Audit the basics, put the rules in code, test one change at a time and record what you learn.


