This article provides guidelines on installing and configuring On-Site Messaging in your WooCommerce store.
An example of an on-site messaging placement.
On-site messaging eligibility
On-Site Messaging can be enabled by any merchant using Klarna as a payment method (either via the Klarna plugin or via a PSP) and having access to the Klarna Partner Portal to retrieve the client identifier needed to enable this feature.
On-Site Messaging has been part of Klarna for WooCommerce since version 3.5.0. If the store still has the separate On-Site Messaging plugin, remove it.
Configure it under WooCommerce → Settings → Payments → Klarna for WooCommerce. Scroll to Klarna On-Site Messaging.
1.
Copy the client identifier from the Klarna Partner Portal, under Conversion features or Settings → Client identifier. Paste it into the Client ID field with no quotes or whitespace.
2.
Check Enable/Disable to turn On-Site Messaging on.
3.
For the cart page and the product page, choose how the placement appears: Show with Klarna badge, Show without Klarna badge, or Don't show.
4.
Choose where the placement sits on each page. Cart locations include above the cross-sell, above the cart totals, between the cart totals and the checkout button, after the checkout button, and the bottom of the page. Product locations include above the title, between the title and the price, between the price and the excerpt, between the excerpt and the add-to-cart button, between the add-to-cart button and the product meta, between the product meta and the sharing buttons, and after the sharing buttons.
5.
Set Cart Page Theme and Product Page Theme to Light, Dark, or Custom. Custom design is set in the Klarna Partner Portal under Conversion features → On-Site Messaging.
data-key is not a setting on this screen. It is an attribute of the [onsite_messaging] shortcode, for a placement you add yourself. The same placement key can be set on the Klarna On-Site Messaging widget under Appearance → Widgets.
Most placements use a light or dark theme. A placement that accepts a custom design is configured in the Klarna Partner Portal under Conversion features → On-Site Messaging, then selected in the plugin as Custom.
The theme choices in Klarna for WooCommerce are:
Light
Dark
Custom
Accessibility customization limits
Because of accessibility standards, you can not fully customize all the aspects of the placements.