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 […]


Resolving Facebook hacked account

0 Comments

My account Facebook (ABC) has been hacked since Mar 16th, 2024. It’s impacting my business and my friends received spam messages to borrow money. Account phone number: +849xxx.xxxAccount Name: ABC It seems that the email has changed. My old email address: abc@gmail.com Please help to recover.Thank you very much. 3. Verify your account. You might […]


[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, […]


Sort Items in the Collection

0 Comments
Sort list

Use Collections from java.util to sort our list. Let’s have a look at the sample below: The result: