Post by straightlight » Sun Mar 03, 2019 5:10 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 also identified on Github files.

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

find all instances of:

Code: Select all

->get('klarna_
replace all with:

Code: Select all

->get('payment_klarna_
In catalog/model/extension/payment/klarna_account.php file,

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_account.twig file,

replace:

Code: Select all

<input type="text" name="klarna_account[{{ country.code }}][merchant]" value="{{ klarna_account[country.code] ? klarna_account[country.code].merchant }}" placeholder="{{ entry_merchant }}" id="input-merchant{{ country.code }}" class="form-control" />
with:

Code: Select all

<input type="text" name="payment_klarna_account[{{ country.code }}][merchant]" value="{{ payment_klarna_account[country.code] ? payment_klarna_account[country.code].merchant }}" placeholder="{{ entry_merchant }}" id="input-merchant{{ country.code }}" class="form-control" />
4 - Reinstall the klarna account payment module.
5 - Reconfigure the klarna account 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
Who is online

Users browsing this forum: No registered users and 5 guests