OpenCart 🇺🇦

Класс ControllerPaymentBankTransfer extends Controller { ... }

Тип Возвр. Описание
protected mixed index ( )
Исходный код метода:
$this->language->load('payment/bank_transfer');

$this->data['text_instruction'] = $this->language->get('text_instruction');
$this->data['text_description'] = $this->language->get('text_description');
$this->data['text_payment'] = $this->language->get('text_payment');

$this->data['button_confirm'] = $this->language->get('button_confirm');

$this->data['bank'] = nl2br($this->config->get('bank_transfer_bank_' . $this->config->get('config_language_id')));

$this->data['continue'] = $this->url->link('checkout/success');

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/bank_transfer.tpl')) {
	$this->template = $this->config->get('config_template') . '/template/payment/bank_transfer.tpl';
} else {
	$this->template = 'default/template/payment/bank_transfer.tpl';
}	

$this->render(); 
public mixed confirm ( )
Исходный код метода:
$this->language->load('payment/bank_transfer');

$this->load->model('checkout/order');

$comment  = $this->language->get('text_instruction') . "\n\n";
$comment .= $this->config->get('bank_transfer_bank_' . $this->config->get('config_language_id')) . "\n\n";
$comment .= $this->language->get('text_payment');

$this->model_checkout_order->confirm($this->session->data['order_id'], $this->config->get('bank_transfer_order_status_id'), $comment, true);

Связанные классы:

Название класса Роль
class Config { ... } Компонент Config используется в данном классе
class Language { ... } Компонент Language используется в данном классе
class Session { ... } Компонент Session используется в данном классе
class Url { ... } Компонент Url используется в данном классе

Комментарии