ERPClimb logoERPClimb
Composable storefront
SAP Commerce Cloudintermediate 5 min read

Composable storefront — SAP Guided Tutorial

Free sample lesson · open to everyone

Key takeaway

Building the customer-facing shop with SAP Commerce's composable storefront: Angular libraries on top of OCC, CMS-driven pages and components, server-side rendering for SEO and performance, customisation and upgrades.

In this lessonShow sections

Visual overview

Composable storefront — learning sheetFlow: Angular app + libraries → CMS pages via OCC → SSR for SEO → Customise + upgrade. Key ideas: STRUCTURE; CMS-DRIVEN PAGES; SSR AND PERFORMANCE; CUSTOMISING AND UPGRADING. Watch out: Forking library code makes upgrades very hard; stay on extension points.ERPClimb.com / COMMERCE / LESSON 8/12 / LEARNING SHEETComposable storefront1 · HOW IT FLOWS1Angular app +libraries2CMS pages viaOCC3SSR for SEO4Customise +upgrade2 · KEY IDEAS EXPLAINEDStructureApp shell plus feature libraries (product, cart,checkout, user account).Configuration for base site, endpoints andfeatures.Cms-Driven PagesPage templates, slots and components defined inCommerce CMS (content catalog).Business users change layout and content inBackoffice/SmartEdit without code.Ssr And PerformanceSSR renders HTML on the server for crawlers andfast first paint.Cache SSR output where safe; avoid personaliseddata in shared cache.Customising And UpgradingReplace or extend components via configuration.Keep custom code in separate modules.3 · REMEMBER · WATCH OUTRememberThe composable storefront (formerly Spartacus) is an Angularapplication built from SAP-provided libraries.It reads content and commerce data through OCC; page layout comes fromthe Commerce CMS.Server-side rendering (SSR) improves first load and SEO.!Watch outForking library code makes upgradesvery hard; stay on extension points.4 · IN A REAL PROJECTA project copied checkout library code to change one field order. Two library upgrades later, the copied codewas incompatible and checkout broke after an upgrade. Replacing the fork with a component override viaconfiguration restored a clean upgrade path.Original ERPClimb learning sheet • Verify against your SAP release and edition

The situation: a real project scenario

A project copied checkout library code to change one field order. Two library upgrades later, the copied code was incompatible and checkout broke after an upgrade. Replacing the fork with a component override via configuration restored a clean upgrade path.

Explanation

The composable storefront (formerly branded Spartacus) is an Angular application built from SAP-provided feature libraries, and it's a genuinely separate application from the Commerce platform itself — it talks to Commerce entirely through OCC for commerce data and gets its page layout from the Commerce CMS (content catalog), rather than being compiled into the platform.

Structurally, it's an app shell plus feature libraries for areas like product, cart, checkout and user account, configured for things like which base site and endpoints to use. Pages are CMS-driven: templates, slots and components are defined in the Commerce content catalog and editable by business users through Backoffice or SmartEdit without needing a developer or a deployment for routine content and layout changes — custom CMS components defined this way map to corresponding Angular components in the storefront.

Server-side rendering (SSR) renders HTML on the server before sending it to the browser, which matters for two separate reasons: search engine crawlers get fully-formed HTML instead of relying on JavaScript execution, and real users get a faster first paint. SSR output can be cached for performance, but that caching has to be done carefully — caching personalized or logged-in-specific content in a shared/public cache would leak one customer's data to another, so only genuinely shared content should go into a shared cache.

Customization is meant to happen through configuration, component replacement and documented extension points — not by copying and modifying the library's own source code. This matters specifically because of upgrades: SAP regularly ships new library versions with migration schematics and release notes, and a project that stayed within extension points can usually upgrade in a controlled, mostly mechanical way, while a project that forked library source code has to manually reconcile every fork against every new library version, which gets harder and riskier with each upgrade it's deferred through.

Watch out

Common mistakes

Forking a feature library's source code to change small, specific behavior rather than using an extension point or configuration option: it works initially, but each subsequent library upgrade now has to be manually reconciled against the fork, and the cost compounds with every version skipped.

Not enabling server-side rendering for SEO-relevant pages: product and category pages that matter for organic search traffic lose a real ranking and indexing advantage without it. Caching personalized or logged-in responses in a shared public cache: this is a genuine data leak risk, not just a performance nuance, since one customer's personalized content could be served to another.

Hard-coding page layout in Angular templates instead of using CMS-driven components, which quietly removes business users' ability to change layout or content without a developer and a deployment.

Do this

Best practices

Use extension points, component replacement and configuration for all customization, and resist the urge to copy library source code even for a seemingly small change — the maintenance cost of a fork only grows with every subsequent upgrade.

Enable SSR with a deliberate, reviewed caching strategy that never places personalized content in a shared cache, since the performance and SEO benefits of SSR are only worth it if caching is done safely.

Keep storefront library versions current on a regular cadence, using SAP's migration schematics and release notes, rather than letting several versions accumulate and turning an eventual upgrade into a much larger, riskier project.

In the interview

Interview angle

A good question here is 'Your team copied checkout library code two years ago to reorder one field, and now an upgrade is blocked — how do you fix it, and how do you prevent this next time?' A weak answer just says 'rewrite the checkout.' A strong answer identifies that the fork needs to be replaced with the equivalent extension point or component override, so the upgrade path stops being a manual merge against modified library internals, and then names the preventive practice: customization should go through configuration and extension points from the start, specifically because it's what keeps future library upgrades mechanical instead of a renegotiation with every fork.

Being able to connect the specific incident to the general architectural principle is what distinguishes a strong answer here.

Practice this lesson

Original educational case studies for SAP consultants, not official SAP certification exam questions. Verify product edition and implementation details against the current SAP documentation.

Quick check

0 of 4 questions attempted

Question 1 of 4

What technology is the SAP Commerce composable storefront built with?

Practise this in an interview

Answer in your own words and get instant feedback, the way an interviewer would judge it.

1How do you customise the composable storefront without breaking upgrades?

2What are SSR caching risks in a commerce storefront?

Was this lesson helpful?

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.