Менять и обновлять префикс счета-фактуры каждый месяц в OpenCart 3.0.2.0, например, INV-YYYY-00 до 000.YYYYMMDD-OL
это какая-то кодировка, я нашел настройки в строке кодирования до 515:
admin / controller / setting / setting.php
$data['informations'] = $this->model_catalog_information->getInformations();
if (isset($this->request->post['config_cart_weight'])) {
$data['config_cart_weight'] = $this->request->post['config_cart_weight'];
} else {
$data['config_cart_weight'] = $this->config->get('config_cart_weight');
}
if (isset($this->request->post['config_checkout_guest'])) {
$data['config_checkout_guest'] = $this->request->post['config_checkout_guest'];
} else {
$data['config_checkout_guest'] = $this->config->get('config_checkout_guest');
}
if (isset($this->request->post['config_checkout_id'])) {
$data['config_checkout_id'] = $this->request->post['config_checkout_id'];
} else {
$data['config_checkout_id'] = $this->config->get('config_checkout_id');
}
if (isset($this->request->post['config_invoice_prefix'])) {
$data['config_invoice_prefix'] = $this->request->post['config_invoice_prefix'];
} elseif ($this->config->get('config_invoice_prefix')) {
$data['config_invoice_prefix'] = $this->config->get('config_invoice_prefix');
} else {
$data['config_invoice_prefix'] = 'INV-' . date('Y') . '-00';
}
Я надеюсь, что кто-то может помочь мне, как изменить настройки счета для префикса номера в Opencart 3.x.
Спасибо:)