CORS and CORS in SCC

0 Comments

1. What Is CORS? CORS stands for Cross-Origin Resource Sharing. It is a browser security mechanism that controls whether a web page from one origin can access resources from another origin. For SAP Commerce developers, CORS is particularly important when a storefront such as Spartacus makes HTTP requests to SAP Commerce OCC APIs. First, understand […]


spartacus⚿site⚿cart and the “Cart is not anonymous” error after session expiry

0 Comments

Summary After a session expires, the previous user’s active cart id can stay in localStorage (spartacus⚿site⚿cart). When another user logs in, Spartacus tries to merge that cart into the new user’s cart as if it were anonymous, and the backend rejects it with “Cart is not anonymous”. Fixes made: 1. How the key works Where it […]


[SCC Practice 8] Viewing the local HSQL database in a UI

0 Comments

By default, Hybris runs HSQLDB in-process in file mode. The database files are in hybris/data/hsqldb/ (usually named mydb), and the running server locks them. That gives you two situations. While the server is running: use HAC HAC → Console → FlexibleSearch has a SQL query tab where you can run plain SQL directly against the […]


Extension, Addon, and Modules

0 Comments

Feature Extension AddOn Module Purpose Core logic building block Extend storefront UI without modifying it Bundle of related extensions Affects Backend, services, models, etc. Frontend (JSPs, controllers, resources) Full functionality area (B2B, Marketplace) Contains items.xml? Yes No Not directly (extensions inside do) Installed via localextensions.xml addoninstall command Installer recipe Example commercefacades, mycustomcore paymentaddon, chineseaddressaddon b2b_acc_plus, […]


[SCC Practice 7] Run A Synchronization Job with Restrictions

0 Comments


SAP Hybris Tutorial – Converters and Populators | Unit 10

0 Comments

Overview Data objects (you could say as DTO (Data Transfer Object)) are constructed from Models or other Service Layer objects using Converters and Populators. Converters create new instances of Data objects and call Populators to populate these data objects. The data objects are produced at the Facade layer. Please view the diagram flow below to […]


[SCC Practice 6] Reduce the build and startup time

0 Comments

NOTE: We can apply the one-by-one method above; we are not required to use all of them. Ref: https://community.sap.com/t5/crm-and-cx-blogs-by-sap/best-tips-to-reduce-build-time-of-sap-commerce-cloud/ba-p/13563311


[SCC Practice 5] Adding new populator for productData as product options.

0 Comments

There is a list of options to populate product data. We might see the list of configurations below: Each option has a corresponding populator, and they will populate product data in order. If we want to create a new populator to populate some new attributes for product data, like specifications, we will do the following […]


[SCC Practice 4] Abort Cronjob – Enable Abort Action

0 Comments

In the previous post Hybris Tutorial – Cronjob | Task Schedule | Export Order Data to CSV | Unit 8, we learned the way to create the cronjob. But we don’t know how to stop it when it is executing. So in this post, we will learn about the way to abort cronjob. By default, […]


SAP Hybris Tutorial – Data Modeling | items.xml File | Unit 9

0 Comments
hybris data modeling, items.xml file

This is the very important part we need to know about the data modeling in Hybris. SAP Commerce allows you to match your specific business needs through product and data modeling. Good understanding of the type system allows you to reflect in your application your business model. The bean and enum generation feature also serves that […]