Post by straightlight » Thu Feb 28, 2019 10:16 pm

The following steps are for Opencart v3.0.3.1 release. If your site is running in production, put your site under maintenance.

1 - Take a screenshot of your admin klarna checkout payment module configurations.
2 - Uninstall the klarna checkout payment module.
3 - In admin/controller/extension/payment/klarna.php file,

find all instances of:

Code: Select all

->post['klarna_
replace all with:

Code: Select all

->post['payment_klarna_
Then, find all instances of:

Code: Select all

->get('klarna_
replace all with:

Code: Select all

->get('payment_klarna_
In admin/view/template/extension/payment/klarna_checkout.twig file,

find all instances of:

Code: Select all

klarna_
replace all with:

Code: Select all

payment_klarna_
In catalog/controller/extension/payment/klarna_checkout.php file,

find all instances of:

Code: Select all

->get('klarna_
replace all with:

Code: Select all

->get('payment_klarna_
Then, in catalog/model/extension/payment/klarna_checkout.php file,

find all instances of:

Code: Select all

->get('klarna_
replace all with:

Code: Select all

->get('payment_klarna_
4 - Reinstall the klarna checkout payment module.
5 - Reconfigure the klarna checkout payment module.

As for the getMethod() in the catalog/extension/payment/klarna_checkout.php file, it is still under reflection on what should go there ...

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member
Online

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Thu Feb 28, 2019 10:32 pm

These corrections have also been already done on the GitHub master files.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member
Online

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by shivankagrawal » Thu Dec 12, 2019 8:13 pm

On OC 3.0.3.2 catalog/view/theme/default/template/extension/payment/klarna_checkout_sidebar.twig on line number 51 "if" condition is missing

Code: Select all

{% products or vouchers %}
So, I replaced that line with

Code: Select all

{% if products or vouchers %}
Using this route I can open Klarna checkout page store_url/index.php?route=extension/payment/klarna_checkout
Is there any way to open this page from by clicking Checkout button on from Cart page ?
Or is there any other way to load this page on opencart default checkout page ?

Extensions Developed for an Opencart @ https://www.opencart.com/index.php?rout ... ankagrawal


Active Member

Posts

Joined
Mon Jul 18, 2016 7:05 pm
Who is online

Users browsing this forum: No registered users and 8 guests