OpenCart 🇺🇦

Схема

public mixed action ( )

Аргументы

Аргумент Возможный тип Описание
У метода нет аргументов

Описание

Метод пока еще не документирован.

Исходный код

$this->language->load('sale/return');

$json = array();

if ($this->request->server['REQUEST_METHOD'] == 'POST') {
	if (!$this->user->hasPermission('modify', 'sale/return')) {
		$json['error'] = $this->language->get('error_permission');
	}

	if (!$json) { 
		$this->load->model('sale/return');

		$json['success'] = $this->language->get('text_success');

		$this->model_sale_return->editReturnAction($this->request->get['return_id'], $this->request->post['return_action_id']);
	}
}

$this->response->setOutput(json_encode($json));