I have designed and built more than 30 online stores, almost all of them on PrestaShop. The big decisions (the catalogue, the prices, the brand) are rarely mine. What does go through my hands are the small moments: what the button does when you press it, what you see next, whether the page moves while it loads.
They are microinteractions, and in a store they matter more than on almost any other site, because each one happens right before a payment. Here are four, each with a demo you can touch.
The buy button
It is the most pressed button in the store, and usually the worst one. Three mistakes keep coming back:
- Disabled with no reason given. The size is missing, but the button only turns gray. Anyone who does not see the picker does not know what to do.
- The text changes and so does the width. "Add to cart" becomes "Added!" and everything next to it moves.
- No visible wait. The request takes half a second, nothing changes, and people press again. Two pairs of shoes in the cart.
Pick a size first
The button on the right stays active even without a size. Pressing it highlights the picker and says what is missing. While it adds, it shows the wait and ignores repeated clicks. When it is done, it confirms in the same place and at the same width.
That is four states, and they are worth designing before writing the button:
On mobile, the button has to stay within reach even on a long product page. A bar fixed to the bottom solves that, as long as it respects the iPhone safe area:
.buy-bar {
position: sticky;
bottom: 0;
padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
background: color-mix(in oklab, var(--background) 92%, transparent);
backdrop-filter: blur(12px);
}What happens after adding
The product is in the cart. Now the store has to confirm it without taking anyone off the product page. There are three common patterns, and each one is good for something different:
- Counter only. The quietest option, and the easiest to miss. It works when the cart icon is close to the button and has a short animation that draws the eye.
- A toast. It confirms what was added (product and size), lets you keep browsing and offers a shortcut to the cart. It is my default.
- A drawer. It opens the cart over the page. It helps when the store sells add-ons, or when orders usually hold a single product. For someone who wants to keep shopping it is an interruption, so it should not open on every add.
Whatever the pattern, the message says what was added. "Product added" is not enough when someone picked a size and a color.
Photos that do not push the page
On a product page, the photo is usually the largest thing on screen. That makes it the LCP (Largest Contentful Paint), the element that measures how long the page takes to load. And if it arrives without a reserved space, it pushes everything below it: that is CLS (Cumulative Layout Shift).
Google considers an LCP of up to 2.5 seconds and a CLS of up to 0.1 good (web.dev). In the stores I have optimised, the main photo was almost always the source of both problems.


The fix is to reserve the box before the image arrives. That needs its aspect ratio, and in a catalogue it pays to use the same one for every product photo (4:5 is common in fashion):
<img
src="soft-trail-2-800.webp"
srcset="soft-trail-2-400.webp 400w, soft-trail-2-800.webp 800w"
sizes="(max-width: 768px) 100vw, 50vw"
width="800"
height="1000"
fetchpriority="high"
alt="Soft Trail 2 shoes, side view"
/>With width and height, the browser works out the ratio and reserves the space. fetchpriority="high" tells it this image goes first. Only the main photo; the rest of the gallery loads lazily.
In Next.js 16, next/image reserves the box when you pass width and height. The old priority prop is deprecated: it is now preload, although the docs recommend fetchPriority="high" in most cases.
<Image
src={product.image}
alt={product.imageAlt}
width={800}
height={1000}
sizes="(max-width: 768px) 100vw, 50vw"
fetchPriority="high"
/>Filters that keep the floor still
Filtering should be the calmest part of the catalogue, and in many stores it is the roughest: the grid disappears, a spinner shows up, the page shrinks and grows again. Sometimes the result is a "0 results" screen that could have been avoided.












Three changes fix it:
- Counts on every filter. Anyone about to press "Apparel (2)" already knows what they will see.
- Filters with no results cannot be pressed. They look disabled, so people know they exist, but they do not lead to an empty page.
- The grid stays in place while it loads. It dims a little, sets
aria-busyand swaps the products without changing height.
<div
aria-busy={isLoading}
className={cn(
"grid min-h-[480px] grid-cols-3 transition-opacity",
isLoading && "opacity-50"
)}
>
{products.map((product) => (
<ProductCard key={product.id} product={product} />
))}
</div>The minimum height keeps the page from jumping when a filter returns fewer products. And if the list comes from the server, the counts can arrive in the same response as the products.
What they have in common
All four microinteractions solve the same thing: the store responds to what you do, where you do it, without moving anything from under your finger. None needs a new library. They need someone to design the in-between states (adding, loading, empty, out of stock) with the same care as the product photo.
The next post covers the other half: how to bring AI into a store without the usual chatbot in the corner.