Rebuild the system by running the following command: ant clean all
Step 9: Update the system
1.
Perform a full initialization (if this is the first installation): Use the Hybris Administration Console (HAC).
2.
Update the system:
2.1.
Open a browser and go to HAC → Platform → Update.
2.2.
Under General Settings, select:
2.2.1.
Update running system
2.2.2.
Localize types
2.3.
Under Project Data Settings, check:
2.3.1.
klarnaosmaddon
2.3.2.
klarnaosmbackoffice
2.4.
Click Update.
Configuration
Create a Klarna OSM configuration
Log in to Backoffice
1.
Open a web browser and navigate to the SAP Commerce Backoffice login page.
2.
Log in with your administrator account credentials.
Navigate to Klarna On-Site Messaging
In Backoffice, go to Klarna > Klarna On-Site Messaging.
Backoffice navigation to OSM in SAP
Create a new configuration
Click Create to add a new Klarna On-Site Messaging configuration.
Creating a new OSM configuration in SAP
Fill in configuration details
Enter the required values for configuring On-Site Messaging.
Save the configuration
Click Done to save your configuration.
Map KOSM to common configuration, credentials, and base store
Navigate to Klarna Common Configuration
1.
In Backoffice, go to Klarna > Klarna Common Configuration.
2.
Double-click the Klarna Common Configuration entry to open it for editing.
Assign base store
1.
Go to the General tab.
2.
In the Essentials section, select the relevant base stores where the Klarna On-Site Messaging should appear.
Credentials settings in SAP
Assign credentials
1.
In the Klarna Credentials section, select the appropriate credentials to use with the Klarna On-Site Messaging configuration.
2.
If needed, click + Create Klarna Activation to create new credentials.
Klarna Activation in SAP
Assign the Klarna On-Site Messaging configuration
In the Klarna On-Site Messaging Configuration section, select the newly created OSM configuration.
Klarna OSM configuration in SAP
Save changes
Click Save to apply your changes to the Klarna Common Configuration.
Configuration Fields
Attribute
Mandatory
Description
Code
Yes
Provide a unique name or code to identify this Klarna OSM configuration internally within SAP Commerce.
Active
Yes
Check this option to activate the configuration. Leave unchecked to keep it inactive.
Client Id
Yes
Enter the UCI value retrieved from the Klarna Merchant Portal (data-client-id). This can be configured under Klarna > Klarna Activation.
Placements
Yes
Choose multiple placement options (e.g., Cart or PDP) where the Klarna On-Site Messaging should appear.
Theme
Yes
Select a theme from the dropdown for the Cart Page or PDP. If custom styling is configured in the Klarna Merchant Portal, choose the custom option.
Custom Style
No
Add custom styles to OSM elements using the ::part API. Use a <style> tag to define the custom style. Example: <style type='text/css'> #osm-product-strip::part(osm-container) { background-color: #d9b259; }#osm-product-strip::part(osm-cta) { font-size: 14px; } #osm-cart-strip::part(osm-container) { background-color: #d4d122; } </style>