Skip to content

Commit

Permalink
fix loading problem with OC 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
harrypujianto committed Jul 1, 2016
1 parent d96fa7b commit 6dc8903
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 deletions.
10 changes: 6 additions & 4 deletions catalog/controller/payment/veritrans.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ public function index() {

$data['pay_type'] = $this->config->get('veritrans_payment_type');
$data['text_loading'] = $this->language->get('text_loading');

$data['process_order'] = $this->url->link('payment/veritrans/process_order');

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/veritrans.tpl')) {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/veritrans.tpl')) {
return $this->load->view($this->config->get('config_template') . '/template/payment/veritrans.tpl',$data);
} else {
return $this->load->view('default/template/payment/veritrans.tpl', $data);
if (VERSION > 2.1 ) {
return $this->load->view('payment/veritrans', $data);
} else {
return $this->load->view('default/template/payment/veritrans.tpl', $data);
}
}

}

/**
Expand Down
8 changes: 7 additions & 1 deletion catalog/controller/payment/veritransbca.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ public function index() {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/veritransbca.tpl')) {
return $this->load->view($this->config->get('config_template') . '/template/payment/veritransbca.tpl',$data);
} else {
return $this->load->view('default/template/payment/veritransbca.tpl', $data);

if (VERSION > 2.1 ) {
return $this->load->view('payment/veritransbca', $data);
} else {
return $this->load->view('default/template/payment/veritransbca.tpl', $data);
}

}

}
Expand Down
6 changes: 5 additions & 1 deletion catalog/controller/payment/veritransbcains.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ public function index() {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/veritransbcains.tpl')) {
return $this->load->view($this->config->get('config_template') . '/template/payment/veritransbcains.tpl',$data);
} else {
return $this->load->view('default/template/payment/veritransbcains.tpl', $data);
if (VERSION > 2.1 ) {
return $this->load->view('payment/veritransbcains', $data);
} else {
return $this->load->view('default/template/payment/veritransbcains.tpl', $data);
}
}

}
Expand Down
6 changes: 5 additions & 1 deletion catalog/controller/payment/veritransbni.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ public function index() {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/veritransbni.tpl')) {
return $this->load->view($this->config->get('config_template') . '/template/payment/veritransbni.tpl',$data);
} else {
return $this->load->view('default/template/payment/veritransbni.tpl', $data);
if (VERSION > 2.1 ) {
return $this->load->view('payment/veritransbni', $data);
} else {
return $this->load->view('default/template/payment/veritransbni.tpl', $data);
}
}

}
Expand Down
6 changes: 5 additions & 1 deletion catalog/controller/payment/veritransmandiri.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ public function index() {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/veritransmandiri.tpl')) {
return $this->load->view($this->config->get('config_template') . '/template/payment/veritransmandiri.tpl',$data);
} else {
return $this->load->view('default/template/payment/veritransmandiri.tpl', $data);
if (VERSION > 2.1 ) {
return $this->load->view('payment/veritransmandiri', $data);
} else {
return $this->load->view('default/template/payment/veritransmandiri.tpl', $data);
}
}

}
Expand Down

0 comments on commit 6dc8903

Please sign in to comment.