News:

Looking for documentation? Take a look on our wiki

Main Menu

Klarna Checkout - Buggy as ....

Started by Rune Rasmussen, March 26, 2015, 14:18:54 PM

Previous topic - Next topic

alatak

Hello Rune,

Yes it is true.
I made quite a lot of changes in the plugin, and we added some also in the core to make Klarna Checkout more user friendly.

I have to do some more testing ...and will give you a new version i hope this week.

Rune Rasmussen

OK, great Valérie. I'm glad to hear that it's made more user friendly.

For the new version, don't rush it for me. I'll probably take it slow a couple more weeks myself, I was just curious after looking briefly at the changes. Feel free to enjoy the summer if you can. :)
Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team

Rune Rasmussen

#17
Noticed the 3.0.9.6 release, so I downloaded it and updated an existing 3.0.9.4 test site runing on Joomla! 3.4.3 with Klarna Checkout.
Entered and saved config.
Result was blank product info page and cart, nothing logged.
Thus I deleted the vmbeez5-template folder and uploaded it from the VirtueMart3.0.9.6_Joomla_2.5.28-Stable-Full_Package.zip, nothing changed.
So then I changed Joomla config to use developer on error reporting, resulting in the display of:
QuoteParse error: syntax error, unexpected '[', expecting ')' in /plugins/vmpayment/klarnacheckout/klarnacheckout.php on line 734
Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team

Rune Rasmussen

#18
Hi Valérie, I wonder if Klarna Checkout is considered to be stable in VirtueMart 3.0.10?

T.ex. there are still some missing language strings in admin (language files downloaded today), and some not loaded from translation in cart it seems (like the select shipping first text). And the KCO displays on top of cart, instead of on the bottom, like we would believe from setting in the module. Which is annoying when shipping is required selected first.

Also when the new VM config 'Ajax for OPC' is activated, that seems to make KCO re-load all the time, so you can't fill anything. Disabling it makes the rest of the cart broken, t.ex. updating product quantity and deleting products doesn't work then.

Anyhow I wonder, since the documentation isn't updated, is there any special settings needed in VM configuration to make things work better? And if there is known issues or requirement, please let us know before we and other users waste a lot of time trying to update and figure it out. ;)

Missing language strings in module config:
VMPAYMENT_KLARNACHECKOUT_REFUND -> http://dev.virtuemart.net/projects/virtuemart/repository/entry/trunk/virtuemart/plugins/vmpayment/klarnacheckout/klarnacheckout.xml#L77
VMPAYMENT_KLARNACHECKOUT_PAYMENT_LOGO_DISPLAY_TOOLTIP -> http://dev.virtuemart.net/projects/virtuemart/repository/entry/trunk/virtuemart/plugins/vmpayment/klarnacheckout/klarnacheckout.xml#L99
VMPAYMENT_KLARNACHECKOUT_PAYMENT_FORM_SPECIFIC -> http://dev.virtuemart.net/projects/virtuemart/repository/entry/trunk/virtuemart/plugins/vmpayment/klarnacheckout/klarnacheckout.xml#L108

Btw! What is that 'Display payment form position: Specific' (ref. last missing string) meant to do in VM, as it seems to do the same now as 'Right'?
Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team

Rune Rasmussen

#19
OK, found something ...

It seems like the 'Using the Script ajax Countries / Regions' is causing the Ajax trouble, unselecting it makes the cart work with or without 'Ajax for OPC' selected.

So,'Using the Script ajax Countries / Regions' must be unselected when using KCO.
Also it seems like unselecting 'Using the VirtueMart jQuery' stops KCO from "loading twice", making it much faster. 'Use external google jQuery library' doesn't influence, so it can be selected instead if needed.

Now we only need to get KCO down to the bottom, where it's supposed to be when bottom is selected, and VM3.0.10 KCO might actually be useful.
Btw! Adding a 'Display payment form position: Top' could be good for those having fixed/simple shipping option(s).

Just for the record, all tests done in VirtueMart3.0.10_Joomla_2.5.28-Stable-Full_Package with Vmbeez5 and English, in Firefox.


UPDATE/CORRECTION! Sadly unselecting 'Using the VirtueMart jQuery' breaks the add to cart function, so then there is a jQuery conflict with KCO who needs to be handled in the cart.
Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team

alatak

Hello Rune

Yes i know. The development is not finished yet.
I had a meeting with klarna on monday to find a solution.

I should have added that in the release announcements that it is not finished

Rune Rasmussen

It's still unfinished? Did you give up on Klarna Valérie?
What I don't understand is why the unfinished code is in a stable release like 3.014 then, unless you have some workarounds to get it work better than the older versions ( like 3.0.8 )?
Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team