| Аргумент | Возможный тип | Описание |
| У метода нет аргументов | ||
$this->language->load('sale/voucher');
$json = array();
if (!$this->user->hasPermission('modify', 'sale/voucher')) {
$json['error'] = $this->language->get('error_permission');
} elseif (isset($this->request->get['voucher_id'])) {
$this->load->model('sale/voucher');
$this->model_sale_voucher->sendVoucher($this->request->get['voucher_id']);
$json['success'] = $this->language->get('text_sent');
}
$this->response->setOutput(json_encode($json));