Post by straightlight » Sun Mar 03, 2019 5:23 am

The following steps are for Opencart v3.0.3.1 release. If your site is running in production, put your site under maintenance. Issue has already been fixed on Github files.

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_checkout.php file,

find all instances of:

Code: Select all

->get('klarna_
replace all with:

Code: Select all

->get('payment_klarna_
In admin/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_
Then, in admin/view/template/extension/payment/klarna_checkout.php file,

find all instances of:

Code: Select all

klarna_
replace all with:

Code: Select all

payment_klarna_
Then, 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_
3.1 - Then, take a screenshot of your klarna checkout payment module
3.2 - Uninstall klarna checkout payment module

Then, in catalog/controller/extension/module/klarna_checkout_module.php file,

find:

Code: Select all

if (!$this->config->get('module_klarna_checkout_status') || !$this->config->get('klarna_checkout_status')) {
replace with:

Code: Select all

if (!$this->config->get('module_klarna_checkout_status') || !$this->config->get('payment_klarna_checkout_status')) {
Then, in the same 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.
6 - Test a transaction during checkout.
7 - When successful, disable the site maintenance (if running in production).

This should overall resolve the status issues along with other variables.

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
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

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

Post by HAO » Wed Mar 27, 2019 11:14 pm

3 - In admin/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_
In this situation, Whether this code also needs to be changed?

find all instances of:

Code: Select all

request->post['klarna_
replace all with:

Code: Select all

request->post['payment_klarna_
In admin/model/extension/payment/klarna_checkout.php file, and other php files.

Search and replace all:

Code: Select all

request->post['klarna_
replace all with:

Code: Select all

request->post['payment_klarna_
etc.

This topic also has the same logic problem?

HAO
Active Member

Posts

Joined
Fri Jun 03, 2011 2:52 pm
Who is online

Users browsing this forum: No registered users and 5 guests