diff --git a/catalog/controller/payment/mollie_ideal.php b/catalog/controller/payment/mollie_ideal.php index a18187d0..5803f482 100755 --- a/catalog/controller/payment/mollie_ideal.php +++ b/catalog/controller/payment/mollie_ideal.php @@ -521,16 +521,17 @@ protected function renderTemplate ($template, $data, $common_children = array(), */ protected function getTemplatePath ($template) { - $config_template = $this->config->get("config_template"); - $possible_paths = array(); + $theme_path = $this->config->get("config_template") . "/template/payment/"; + $default_path = "default/template/payment/"; + $possible_paths = array(); if ($this->isOpencart2()) { - $possible_paths[] = $config_template . "/" . $template . "_2.tpl"; - $possible_paths[] = "default/" . $template . "_2.tpl"; + $possible_paths[] = $theme_path . $template . "_2.tpl"; + $possible_paths[] = $default_path . $template . "_2.tpl"; } - $possible_paths[] = $config_template . "/" . $template . ".tpl"; + $possible_paths[] = $theme_path . $template . ".tpl"; foreach ($possible_paths as $path) { @@ -540,7 +541,7 @@ protected function getTemplatePath ($template) } } - return "default/" . $template . ".tpl"; + return $default_path . $template . ".tpl"; } /**