• Hello,

    After updating the plugin we no longer see the on site messages in cart and product pages. Why is this happening?

    The only think we have added in functions.php is the following snippet

    add_filter('kosm_locale', function($locale) { //product page

    ? ? $my_current_lang = apply_filters( 'wpml_current_language', NULL );

    ? ? if($my_current_lang == 'el'){

    ? ? ? ? return 'el-GR';

    ? ? }else{

    ? ? ? ? return 'en-GR';

    ? ? }

    });

    add_filter('kp_locale', function($locale) { //checkout page

    ? ? $my_current_lang = apply_filters( 'wpml_current_language', NULL );

    ? ? if($my_current_lang == 'el'){

    ? ? ? ? return 'el-GR';

    ? ? }else{

    ? ? ? ? return 'en-GR';

    ? ? }

    });

    Thanks!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    From version 3.7.0 of Klarna for WooCommerce there is a new plugin settings page. With this new settings page the Client ID was not migrated, you need to go to the plugin settings and add the Client ID for all countries you want it to work on.?To generate a Client ID go to your Klarna merchant portal -> Conversion Boosters -> On Site Messaging -> Get Started.

    Have you whitelisted your site URL in your Klarna account settings? If you go to your Klarna merchant portal –> Payment Settings –> Client identifier –> Allowed origin, register your URL there.

    Please see our documentation here.

    Thread Starter giannisdigitup

    (@giannisdigitup)

    Hello,

    After adding the Client ID to the field, we saved the settings and we get this message Your Klarna AT Production credentials are not authorized. Please verify the credentials and environment (production or test mode) or remove these credentials and save again. API credentials only work in either production or test, not both environments. API error code: 401, Klarna API error message: Unauthorized.

    The credentials are the live one’s we have been using all this time. The account is for Greece. Why is this happening?

    Also another problem is that we have enabled the add to cart button for variable products to be shown after the customer chouses a valid variation. The problem is that we have setted the klarna message to be under the add to cart button, but it is visible in two places, one under the add to cart and another under the sharing buttons. How can we solve this?
    Before chousing a variation: https://prnt.sc/UH4aZ-gQ8Uc4
    After chousing a variation: https://prnt.sc/ejpDaNrrJClm

    We need a solution for both problems as soon as possible.

    Thanks!

    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    Regarding the Unauthorized 401 error message. AT stands for the Austria credentials, are your Klarna API keys configured for both Greece and Austria or just for Greece?

    Regarding the Klarna On Site Messaging widget being visible in two places on the product page. Are you also using an On-site messaging shortcode somewhere on your site? If you have enabled On Site Messaging via the plugin settings/client ID and via an On Site Messaging shortcode the widget might be visible in two places.

    Thread Starter giannisdigitup

    (@giannisdigitup)

    Hello,

    About the first problem you were correct. Somehow there were added credentials for austria. We do not know how this happened and the credential did not much ours.

    About the second thing, no we are not using any sortcodes.

    Thanks!

    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    Regarding Unauthorized 401 error, was the issue solved or were the credentials autofilled again after you tried to remove them?

    Regarding Klarna On Site Messaging being visible twice. This issue might be caused by a compatibility issue with either the theme that you are using or any other plugin that you have activated on your site, please try the following:

    • Try and change the theme to Storefront which is the theme our plugins are tested for and see if that helps.
    • If that does not help try and deactivate all plugins except for WooCommerce and our Klarna plugin and see if the issue is solved. If so, activate all plugins again one by one to see what plugin might be causing the issue.
    • Also go to WooCommerce Status –> Tools, Clear customer sessions and Clear template cache.

    I suggest that you try this in a staging environment of your site to make sure not to effect your live site and customers or create a backup of your site. You can read more about staging environments here. 

    Thread Starter giannisdigitup

    (@giannisdigitup)

    Hello,

    First of all, yes the credentials were autofilled again after we tried to remove them for Austria.?

    Also, when we choose to remove the placement from the product page, the chrome debugger shows a lot of SDK errors!

    Thanks!

    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    Regarding the AT API keys being autofilled, this issue is related to the Chrome Autofill functionality and is an issue that is due to a chrome update. When you have login credentials saved in Chrome Autofill and login to your site it could lead to the API keys being set with these credentials in the Klarna Payments plugin settings in WooCommerce.?

    If you try and deactivate Chrome Autofill and login to your site via another browser and remove the prefilled AT API keys and save the changes. Does that solve the issue with the AT keys being autofilled again?

    Regarding the Klarna On Site Messaging issue, could you please send a link to your site so we can have a look at the issue?

    Thread Starter giannisdigitup

    (@giannisdigitup)

    Hello,

    This is for the second issue. https://www.nashbyna.com/lorena-ivory-dress/

    About the first one we will contact you again.

    Thanks!

    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    Have you disabled Klarna On Site Messaging on your site? I am not able to see the On Site Messaging widget on your product page for variable products.

    Thread Starter giannisdigitup

    (@giannisdigitup)

    Yes I have, check the console. The problem is about the errors that appear. I understand that the fact about double showing message may be caused by a conflict with the theme. I will check it out latter.

    Thanks!

    Thread Starter giannisdigitup

    (@giannisdigitup)

    Hello,

    Any updates?

    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    When i visit your site and inspect your product page via chrome i am not able to see any SDK errors.

    Thread Starter giannisdigitup

    (@giannisdigitup)

    Hello,

    Are you sure you are in viewing Chrome console? Because we get all this https://prnt.sc/08Yi-p1XiZSz

    Thanks!

    Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    Yes i am sure, i checked again just now and i am still not able to see any errors in the chrome console on the product page.

    If you go to an inkognito window, are you still seeing the errors in the console?

    Thread Starter giannisdigitup

    (@giannisdigitup)

    Hello,

    Yes I get this error https://prnt.sc/NsL_eapss6eA.

Viewing 15 replies - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.