diff --git a/admin/controller/extension/payment/mollie/base.php b/admin/controller/extension/payment/mollie/base.php index 1e555ab9..5bd1cd17 100644 --- a/admin/controller/extension/payment/mollie/base.php +++ b/admin/controller/extension/payment/mollie/base.php @@ -171,6 +171,18 @@ protected function uninstallAllModules () */ public function index () { + // Double-check if clean-up has been done - For upgrades + $adminThemeDir = DIR_APPLICATION . 'view/template/extension/payment/'; + if (MollieHelper::isOpenCart3x() || MollieHelper::isOpenCart2x()) { + if(file_exists($adminThemeDir . 'mollie_1.tpl')) { + $this->cleanUp(); + } + } else { + if(file_exists($adminThemeDir . 'mollie.tpl')) { + $this->cleanUp(); + } + } + // Load essential models $this->load->language("extension/payment/mollie"); $this->load->model("setting/setting"); diff --git a/admin/controller/extension/payment/mollie_inghomepay.php b/admin/controller/extension/payment/mollie_inghomepay.php new file mode 100644 index 00000000..5a936fb9 --- /dev/null +++ b/admin/controller/extension/payment/mollie_inghomepay.php @@ -0,0 +1,7 @@ +