commercetools-frontend

Production-tested patterns for commercetools storefronts — Next.js, React, PDP/PLP, cart, checkout, SEO, and performance from a Platinum partner with 50+ live implementations.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "commercetools-frontend" with this command: npx skills add ariessolutionsio/composable-skills/ariessolutionsio-composable-skills-commercetools-frontend

commercetools Frontend & Storefront Development

Two Development Paths

This skill covers two distinct approaches to building storefronts on commercetools:

ApproachWhen to UseKey File
commercetools Frontend (hosted)Using Studio for business users, extensions, components (tastics), data sourcesreferences/ct-frontend-extensions.md
Headless with Next.js/ReactCustom storefront with full control, App Router, Server Componentsreferences/storefront-architecture.md
B2B StorefrontBusiness units, permissions, approval workflows, quotes, purchase listsreferences/b2b-frontend.md

Both approaches share patterns for product pages, cart/checkout UI, and performance/SEO. B2B patterns layer on top of either approach.

How to Use This Skill

  1. Identify which approach you are using (commercetools Frontend or headless Next.js)
  2. Load the relevant architecture file first
  3. Then load the page-type-specific reference for your current task
  4. Reference files contain correct/incorrect code pairs, checklists, and pitfall warnings

Progressive loading -- only load what you need:

  • Using commercetools Frontend extensions, data sources, actions? Load references/ct-frontend-extensions.md
  • Using commercetools Frontend components, Studio, renderer? Load references/ct-frontend-components.md
  • Building a headless Next.js storefront? Load references/storefront-architecture.md
  • Building product listing pages (PLP, filtering, pagination)? Load references/product-listing-pages.md
  • Building product detail pages (PDP, variants, product cards)? Load references/product-detail-pages.md
  • Building cart UI? Load references/cart-ui.md
  • Building checkout flows? Load references/checkout-ui.md
  • Optimizing frontend performance (images, LCP, code splitting)? Load references/frontend-performance.md
  • Optimizing SEO (structured data, meta tags, sitemap)? Load references/frontend-seo.md
  • Building a B2B storefront (business units, quotes, approvals)? Load references/b2b-frontend.md

CRITICAL Priority

PatternFileImpact
Data fetching strategy (SSR vs SSG vs ISR)references/storefront-architecture.mdWrong strategy causes stale prices, slow pages, or API quota exhaustion
Cart state management & optimistic updatesreferences/cart-ui.mdRace conditions cause quantity bugs, lost items, broken checkout
Extension timeout limits (8s max)references/ct-frontend-extensions.mdSlow extensions fail silently, breaking pages for all users
Image optimization & LCPreferences/frontend-performance.mdUnoptimized product images destroy Core Web Vitals scores
B2B permission-gated UIreferences/b2b-frontend.mdMissing permission checks expose admin actions to unauthorized users

HIGH Priority

PatternFileImpact
Server Components for product datareferences/storefront-architecture.mdClient-side fetching leaks API credentials and doubles load time
PLP pagination & filteringreferences/product-listing-pages.mdN+1 queries on listing pages cause 3-10s load times
Checkout flow & payment integrationreferences/checkout-ui.mdMissing error states cause silent payment failures
Component schema design (tastics)references/ct-frontend-components.mdBad schemas make components unusable for business users in Studio
SEO structured data for productsreferences/frontend-seo.mdMissing structured data means no rich results in Google
Locale routing & currency formattingreferences/storefront-architecture.mdWrong i18n setup breaks prices, URLs, and search indexing
B2B quote lifecycle & approval flowsreferences/b2b-frontend.mdQuote cart consumption and approval rejection side effects break B2B checkout

MEDIUM Priority

PatternFileImpact
Product variant selection UIreferences/product-detail-pages.mdConfusing variant selectors reduce conversion
Faceted search UI patternsreferences/product-listing-pages.mdSlow or broken filters frustrate shoppers
commercetools Checkout integrationreferences/checkout-ui.mdMisconfigured Checkout SDK blocks payment completion
Code splitting & bundle sizereferences/frontend-performance.mdOversized bundles increase Time to Interactive
Data source extension patternsreferences/ct-frontend-extensions.mdRedundant API calls from multiple components on a page
Studio page management & publishingreferences/ct-frontend-components.mdWrong page folder structure breaks dynamic routing
B2B business unit & store scopingreferences/b2b-frontend.mdMissing BU/store context causes cross-tenant data leaks
B2B purchase lists & quick orderreferences/b2b-frontend.mdWrong Wishlist API mapping breaks purchase list CRUD

Common Frontend Anti-Patterns (Quick Reference)

Anti-PatternFileConsequence
Fetching product data client-sidereferences/storefront-architecture.mdExposes API credentials, no SSR benefits, poor SEO
Using getServerSideProps for static catalog pagesreferences/storefront-architecture.mdEvery page visit hits the API, wastes quota, slow TTFB
Not implementing optimistic cart updatesreferences/cart-ui.mdUI freezes on every add-to-cart, feels broken
Loading all product images at full resolutionreferences/frontend-performance.md5-10MB page weight, failed Core Web Vitals
Fetching all product attributes when you need 3references/product-detail-pages.md5-10x response payload, slower rendering
Building search from scratch instead of using Product Search APIreferences/product-listing-pages.mdPoor relevance, no faceting, slow queries
Missing error boundaries around commerce datareferences/storefront-architecture.mdOne failed API call crashes the entire page
Hardcoding locale/currency instead of using routingreferences/storefront-architecture.mdBroken multi-market support, wrong prices

MCP Complement

Use this skill for storefront patterns, then use the Developer MCP to look up field names and schemas, and the Commerce MCP for CRUD operations.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

commercetools-data

No summary provided by upstream source.

Repository SourceNeeds Review
General

commercetools-merchant-center

No summary provided by upstream source.

Repository SourceNeeds Review
General

commercetools-api

No summary provided by upstream source.

Repository SourceNeeds Review
General

PanchangaAPI — Vedic Astrology

Vedic astrology (Jyotish) REST API powered by Swiss Ephemeris. 24 endpoints: Panchanga, Kundali (300+ Yogas, Ashtakavarga, Doshas), KP system (249 sub-lords)...

Registry SourceRecently Updated