Page 1 of 1

[v3.0.3.1] - klarna account extension module

Posted: Sun Mar 03, 2019 5:10 am
by straightlight
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.