How can I add Klarna on-site messaging to my ecommerce site?

Hi, I have added Klarna to my website as a payment option, but how do I add Klarna on site messaging to my shopfiy store www.grabthebrand.co.uk? I would like it to say “Make 3 payments of…” under all the prices for my products as shown by the example for another store below. I am using the Brooklyn theme. Any help would be much appreciated.

Hi @Grab_The_Brand

just add right before the last closing into your product-price.liquid file the Klarna code at your choice between the ones available in your merchant area, for example


please note that into the data-purchase-amount I put the amount of the selected product, just double check into the dev console in chrome that the price output is correct, it should be in the format without decimals, so for example displayed price is “245,90”, price into the data-purchase-amount should be “24590”!!

Hi, thank you for the help :slightly_smiling_face: unfortunately when I add the code it doesn’t show up on my website. Is there something I’m doing wrong?

Have you add the main script that initiates all the other scripts?

you can find it into your area, should be at

on-site-messaging/dashboard/installation

add this main library right before the closing body tag in your theme.liquid, it should work

Sorry Do you mean add the code you sent me before just before it says body in the theme liquid? When I try that it still doesn’t show up. Could I add you as a Staff for my shopify please so you can do it? Really appreciate the help :slightly_smiling_face:

Hi @Grab_The_Brand sure!

just sent you a pm !

Almost done, just send me the main script as said in PM

Thank you so much for the help here is the script.

Ok replaced, but notice that you’re going to need the PRODUCTION version of the code instead of the TESTING (playground) one in order to function correctly!

Remember to delete my temporary staff account!

Here is the Production version, could you please add it in as I don’t want to do it wrong?

Done!

Thank you so much you have been very helpful I really appreciate it :slightly_smiling_face:

Hi there

I need help with placement of the Klarna Messaging for my Store, could someone help me please, l have tried to get it done, but am not sure how-else to get it working. Klarna is closed until the New Year and Customer Service at Shopify wont help as they say this is outside the scope of their expertise.

I have been waiting now for 6 days as this was raised before Christmas but so far no help, could someone here help me please, i will pay for the service off course.

Thank you

Hi @HomeFixBoutique , please share your issue so I can help!

I just can seem to be able to place the klarna codes int he correct place for them to appear on my store.

I have so far placed them in the theme - liquid part (sorry l do not have the expertise for the correct terminology)

Its impossible for me to do this can you help me please?

Hi @HomeFixBoutique yes totally, please share some details with me

which is your store url?

where are you trying to add the placement?

which placement codes are you adding?

homefixboutique.com

Hi @HomeFixBoutique this code is correct and it will initialize the klarna app on your website, you now need to add a “placement” message script, you should find a collection of them available in your klarna backend at
https://portal.klarna.com/on-site-messaging/dashboard/placements

pick the one you want and place it accordingly

for example I suppose you’d like to have the one in the product page which shows to the customers the installments import, it is the one called

“credit-promotion-auto-size”

let me know!

yes that correct, where do l place this code in the theme of my store please?