Part Payment Widget

Hi.

I am setting up a buy now, pay later function(example: buy now, pay in april) from “Klarna Checkout” that shows how much choosing this payment will costs in total(with fees) when its time to pay in april .



But i am having a issue with the script. The script is set up to use a default price(1000.00) for payment no matter what value the item have originally as sales price. But what can i use here instead so the script gets the sales price from each product it shows up on and not default value of 1000.00?




<br />
<div style="width:210px; height:80px"<br />
class="klarna-widget klarna-part-payment"<br />
data-eid="XXXXX"<br />
data-locale="nb_no"<br />
[color=#ff0000][b]data-price="1000.00"[/b][/color]<br />
data-layout="pale-v2"<br />
data-invoice-fee="0.95"><br />
</div><br />

```<br />
<br />
example, on the item here the total price with fee should be no more then "94,-"(49+ fee of 45,-)

Good day,



I am not sure where and how you use this code, but please try


```php

class="klarna-widget klarna-part-payment"
data-eid="XXXXX"
data-locale="nb_no"
data-price="{$smarty.session.cart.amount}"
data-layout="pale-v2"
data-invoice-fee="0.95">

```

[quote name=‘eComLabs’ timestamp=‘1424084275’ post=‘205445’]

Good day,



I am not sure where and how you use this code, but please try


<br />
<div style="width:210px; height:80px"<br />
class="klarna-widget klarna-part-payment"<br />
data-eid="XXXXX"<br />
data-locale="nb_no"<br />
data-price="{$smarty.session.cart.amount}"<br />
data-layout="pale-v2"<br />
data-invoice-fee="0.95"><br />
</div><br />

```<br />
[/quote]<br />
<br />
Hi.<br />
I use this on product page and on catagories where products are shown.. But the code you have me did not work <img src="upload://n4syhXZrRhsStKvmS4jT3Mp2S3k.png" class="bbc_emoticon" alt=":("><br />
See the picture for placement info.<br />
[img]http://s1.postimg.org/7ttt0lhan/test_klarna2.png[/img]<br />
<br />
[img]http://s16.postimg.org/63oaofbc5/test_klarna.png[/img]

In this case it should be


```php

class="klarna-widget klarna-part-payment"
data-eid="XXXXX"
data-locale="nb_no"
data-price="{$product.price}"
data-layout="pale-v2"
data-invoice-fee="0.95">

```

[quote name='eComLabs' timestamp='1424101832' post='205488']

In this case it should be


```php

class="klarna-widget klarna-part-payment"
data-eid="XXXXX"
data-locale="nb_no"
data-price="{$product.price}"
data-layout="pale-v2"
data-invoice-fee="0.95">

```
[/quote]

Awsome.. This worked! Thank you EComLabs

2 questions:



1: Where do i find the code for the text with a red sirkle around? I want to remove this but i cant remember the placement.







And 2: If i go to the first page of a catagorie it shows perfect. But if i jump to page nr 2 it does not load the script. I have to refresh the browser for it to show… Any idea why this happens?

Here is the picture

Deleted… Think my answer was wrong.

[quote name='Aron' timestamp='1424294956' post='205743']

1: Where do i find the code for the text with a red sirkle around? I want to remove this but i cant remember the placement.

[/quote]



I do not know answer on this question, but please try to find your code in the following files:



design\themes\responsive\YOUR_THEME\blocks\product_templates\default_template.tpl

design\themes\responsive\YOUR_THEME\common\product_data.tpl


[quote name='Aron' timestamp='1424294956' post='205743']

And 2: If i go to the first page of a catagorie it shows perfect. But if i jump to page nr 2 it does not load the script. I have to refresh the browser for it to show… Any idea why this happens?

[/quote]



If the script tag is used, please add the cm-ajax-force class to it. E.g.


```php


```

“design\themes\responsive\YOUR_THEME\blocks\product_templates\default_template.tpl” was the correct place. Thank you.



About nr 2: Not sure where this is supposed to be added?


[quote name='eComLabs' timestamp='1424344852' post='205819']

I do not know answer on this question, but please try to find your code in the following files:



design\themes\responsive\YOUR_THEME\blocks\product_templates\default_template.tpl

design\themes\responsive\YOUR_THEME\common\product_data.tpl







If the script tag is used, please add the cm-ajax-force class to it. E.g.


```php


```
[/quote]

What code did you insert except the following code?


```php

class="klarna-widget klarna-part-payment"
data-eid="XXXXX"
data-locale="nb_no"
data-price="{$product.price}"
data-layout="pale-v2"
data-invoice-fee="0.95">

```

This one

[quote][/quote]




[quote name='eComLabs' timestamp='1424351848' post='205857']

What code did you insert except the following code?


```php

class="klarna-widget klarna-part-payment"
data-eid="XXXXX"
data-locale="nb_no"
data-price="{$product.price}"
data-layout="pale-v2"
data-invoice-fee="0.95">

```
[/quote]

[quote name='Aron' timestamp='1424358071' post='205880']

This one

[/quote]



Try to replace with:


```php


```



and clear the cache to check the result

[quote name='eComLabs' timestamp='1424358981' post='205886']

Try to replace with:


```php


```



and clear the cache to check the result

[/quote]



Sweet! That did the job… Thank you so much for the help.

[quote name='Aron' timestamp='1424359847' post='205888']

Sweet! That did the job… Thank you so much for the help.

[/quote]



You are welcome!