WP Manifestindependent plugin directory
manifest / ecommerce / klarna-onsite-messaging-for-woocommerce

Klarna On-Site Messaging for WooCommerce WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

★ 1stars
1.13.0latest · 3 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/krokedil/klarna-onsite-messaging-for-woocommerce/archive/refs/heads/master.zip
Updates itself. It ships its own updater (Plugin Update Checker), so new versions appear under Dashboard → Updates.

Klarna On-Site Messaging for WooCommerce plugin

Requires either Klarna Checkout for WooCommerce or Klarna Payments for WooCommerce to be installed

Installation

To install this plugin you first need to have either Klarna Checkout for WooCommerce or Klarna Payments for WooCommerce installed. You can find the links to this above. You install this plugin just like any other WordPress plugin:

  1. Download and unzip the latest release zip file.
  2. If you use the WordPress plugin uploader to install this plugin skip to step 4.
  3. Upload the entire plugin directory to your /wp-content/plugins/ directory.
  4. Activate the plugin through the ‘Plugins’ menu in WordPress Administration.

You also need a few things from Klarna to integrate On-Site Messaging. The Data client ID and Placement data keys for product page placement and/or cart page placement. You can get both the Data client ID and the Placement data keys from your Klarna merchant portal. You can find more information about that here.

Then go to the settings for either the Klarna Checkout or Klarna Payments gateway ( WooCommerce –> Settings –> Payments ). At the bottom of these pages you should now see a section called Klarna On-Site Messaging. Here you can enter the Data client ID and your Placement data keys.

Now when you go to either your product or cart page you should be seeing the widget that you set up in your merchant portal.

Changing widget location.

In your Klarna settings there is a select option to select where on the page you want to display the widgets.

You can also change the location of the individual widget by using the following filters:

  • klarna_onsite_messaging_product_target for the Product page placement action.
  • klarna_onsite_messaging_product_priority for the Product page priority.
  • klarna_onsite_messaging_cart_target for the Cart page placement action.
  • klarna_onsite_messaging_cart_priority for the Cart page priority.
Code example
<?php
// Change the placement action for the widget.
add_filter( 'klarna_onsite_messaging_cart_target', 'change_klarna_onsite_messaging_cart_location' );
function change_klarna_onsite_messaging_cart_location( $location ) {
    // Here you need to replace the $location variable with the action that you want to use instead of the default.
    // You can also add custom checks to apply different locations depending on your needs.
    $location = 'woocommerce_after_cart';
    return $location;
}

// Change the priority for the action for the widget.
add_filter( 'klarna_onsite_messaging_cart_priority', 'change_klarna_onsite_messaging_cart_priority );
function change_klarna_onsite_messaging_cart_priority( $priority ) {
    // Here you need to replace the $priority variable with the action that you want to use instead of the default.
    // You can also add custom checks to apply different priority depending on your needs.
    $priority = '10';
    return $priority;
}

These can be used with any action that you want. You can find a list of all WooCommerce actions and where they operate here

We do not support individual themes. If you want to change the appearance of the widget outside of what we can do with the filter then this requires custom CSS code. Use the classes klarna-onsite-messaging-product and klarna-onsite-messaging-cart respectively.

Releases

Newest 25 of 29 recorded releases.

Tag
Published
1.13.0 latest
Aug 23, 2023 3 years ago
Jun 19, 2023 3 years ago
Mar 23, 2023 3 years ago
Dec 8, 2022 3 years ago
Oct 10, 2022 4 years ago
Jun 28, 2022 4 years ago
May 24, 2022 4 years ago
May 12, 2022 4 years ago
Apr 6, 2022 4 years ago
Mar 1, 2022 4 years ago
Nov 29, 2021 4 years ago
May 31, 2021 5 years ago
Feb 25, 2021 5 years ago
Nov 24, 2020 5 years ago
Oct 2, 2020 6 years ago
Sep 22, 2020 6 years ago
Sep 15, 2020 6 years ago
Aug 11, 2020 6 years ago
Aug 11, 2020 6 years ago
Jun 2, 2020 6 years ago
Mar 4, 2020 6 years ago
Mar 3, 2020 6 years ago
Mar 2, 2020 6 years ago
Oct 22, 2019 7 years ago
Jun 12, 2019 7 years ago
All releases on GitHub →

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Klarna On-Site Messaging for WooCommerce 1.13.0 · audited by WP Registry

No security issues found.

Audited release
1.13.0
Findings
none
Worst severity
—
Content hash
a2cb8fe292f5e486502ebff6…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.