• Home
BuildWithMatija
Get In Touch
  1. Home
  2. Series
  3. E-commerce with Payload CMS
Payload

E-commerce with Payload CMS

11 articles
Hub + 10 spokes

Series Overview

Build e-commerce with Payload CMS: product collections, Shopify-style variants, dynamic dropdowns, SKUs, and flexible product architecture.

All Articles in Series

H
How to Build E‑commerce with Payload CMS: Collections, Products, Variants
HUB1 of 11

How to Build E‑commerce with Payload CMS: Collections, Products, Variants

Build an e‑commerce in Payload CMS — collections, products, and variants.

Learn how to design a real e‑commerce data model in Payload CMS: scalable collections, editor‑friendly products, and variants validated at the source. We’ll add SKU safeguards, SEO‑ready slugs, and lightweight hooks so the catalog stays consistent as it grows.

10 min readAug 10, 2025By Matija Žiberna
1
Build a Shopify-Style Variant System in Payload CMS
PART 12 of 11

Build a Shopify-Style Variant System in Payload CMS

From “just add dropdowns” to a fully dynamic product variant engine — here's how I cloned Shopify's logic using Payload CMS and Next.js.

Cloned Shopify’s product variant logic in Payload CMS — dynamic attributes, no schema changes, fully adaptable.

Aug 4, 2025By Matija Žiberna
2
How to Pass searchParams in Payload CMS Blocks Using Next.js 15.4+ Server Components
PART 23 of 11

How to Pass searchParams in Payload CMS Blocks Using Next.js 15.4+ Server Components

Enable server-side filtering and personalization in Payload CMS by forwarding async searchParams through your block architecture.

Using Next.js 15.4+? Learn how to pass async searchParams through Payload CMS blocks for clean, server-rendered filtering and sharable product views. A step-by-step guide for modern e-commerce setups.

5 min readAug 6, 2025By Matija Žiberna
3
How to Create Dynamic Cross-Collection Dropdowns in Payload CMS v3
PART 34 of 11

How to Create Dynamic Cross-Collection Dropdowns in Payload CMS v3

Build custom React field components to fetch cross-collection data when select options can't be async

Payload CMS v3 select fields don't support async options. Learn how to create custom React fields that fetch cross-collection data and power Shopify-like variant dropdowns.

9 min readSep 29, 2025By Matija Žiberna
4
Generate Product Slugs Automatically: Complete 2026 Guide
PART 45 of 11

Generate Product Slugs Automatically: Complete 2026 Guide

Backfill missing product slugs across locales (sl, en, ru) using a safe Payload job, API trigger, and migration steps

Generate product slugs across sl, en and ru locales with a safe Payload job and API; backfill missing slugs safely without overwriting existing values.

5 min readJan 24, 2026By Matija Žiberna
5
Auto-Generate Base64 Blur Placeholders in Payload CMS with Sharp
PART 56 of 11

Auto-Generate Base64 Blur Placeholders in Payload CMS with Sharp

Create tiny blurDataURL placeholders at upload time and use them with Next.js Image

Generate base64 blur placeholders in Payload CMS using Sharp in afterChange hooks, store them on media, and enable smooth Next.js Image loading without runtime optimization costs.

10 min readOct 6, 2025By Matija Žiberna
6
Payload CMS for Ecommerce: Architect the Content Split
PART 67 of 11

Payload CMS for Ecommerce: Architect the Content Split

Practical guide to separating Payload CMS and commerce platforms for scalable headless stores with Next.js and Remix.

Payload CMS for ecommerce: adopt the Content‑Commerce Split to keep editorial content in Payload, transactional truth in your commerce platform, and merge…

16 min readFeb 15, 2026By Matija Žiberna
7
Payload CMS Promotional Codes: Complete Guide (2026)
PART 78 of 11

Payload CMS Promotional Codes: Complete Guide (2026)

Add delivery-date restrictions, multi-type usage limits, server-side validation, and tracking to Payload CMS

Create a production-ready Payload CMS promotional codes system with delivery-date restrictions, usage limits, server-side validation, and automatic usage…

21 min readJan 29, 2026By Matija Žiberna
8
How To Implement Slugs for Content and SKUs for Products in Payload CMS (With Safe Uniqueness + Seeding)
PART 89 of 11

How To Implement Slugs for Content and SKUs for Products in Payload CMS (With Safe Uniqueness + Seeding)

Separate human-friendly slugs from inventory SKUs while keeping Payload hooks and seeding predictable.

Wire up reusable slug and SKU helpers in Payload CMS so content URLs, product identifiers, and variant slugs stay unique across environments.

8 min readOct 11, 2025By Matija Žiberna
9
How to Dynamically Filter Payload CMS Relationship Fields Based on Sibling Data in Array Fields
PART 910 of 11

How to Dynamically Filter Payload CMS Relationship Fields Based on Sibling Data in Array Fields

Use siblingData-powered filterOptions to keep relationship dropdowns in sync inside Payload arrays.

Learn the exact Payload CMS pattern for filtering relationship fields by sibling values inside an array, including working code, data flow, and extensions.

9 min readOct 12, 2025By Matija Žiberna
10
Build a High-Performance Payload Image Component in Next.js
PART 1011 of 11

Build a High-Performance Payload Image Component in Next.js

Use a custom Next.js loader and split Server/Client components to resolve Payload image optimization conflicts and…

Build a high-performance Payload image component for Next.js using a custom loader and split Server/Client components to optimize images, cut CPU, and improve…

7 min readDec 11, 2025By Matija Žiberna

Topics Covered

Payload CMSe-commerceproduct variantsSKUcollectionsShopify alternative
←Back to all series
HUB ARTICLE

How to Build E‑commerce with Payload CMS: Collections, Products, Variants

By Matija Žiberna

Quick Navigation

Hub: How to Build E‑commerce with Payload CMS: Collections, Products, VariantsPart 1: Build a Shopify-Style Variant System in Payload CMSPart 2: How to Pass searchParams in Payload CMS Blocks Using Next.js 15.4+ Server ComponentsPart 3: How to Create Dynamic Cross-Collection Dropdowns in Payload CMS v3Part 4: Generate Product Slugs Automatically: Complete 2026 GuidePart 5: Auto-Generate Base64 Blur Placeholders in Payload CMS with SharpPart 6: Payload CMS for Ecommerce: Architect the Content SplitPart 7: Payload CMS Promotional Codes: Complete Guide (2026)Part 8: How To Implement Slugs for Content and SKUs for Products in Payload CMS (With Safe Uniqueness + Seeding)Part 9: How to Dynamically Filter Payload CMS Relationship Fields Based on Sibling Data in Array FieldsPart 10: Build a High-Performance Payload Image Component in Next.js

Payload CMS Websites

Your website becomes a structured knowledge system — for customers, employees, and AI.

Learn more

Bespoke AI Applications

Internal tools where AI reduces manual work and connects real business operations.

Learn more

Start a conversation.

Get in touch
Build With Matija Logo

Build with Matija

Matija Žiberna

I turn scattered business knowledge into one usable system. End-to-end system architecture, AI integration, and development.

Quick Links

Payload CMS Websites
  • Bespoke AI Applications
  • Projects
  • How I Work
  • Blog
  • Get in Touch

    Have a project in mind? Let's discuss how we can help your business grow.

    Contact me →
    © 2026BuildWithMatija•Principal-led system architecture•All rights reserved