Добрый день, может кто сталкивался с таким. В журнале постоянно вылетают ошибки.
2018-02-20 12:36:23 - PHP Warning: Missing argument 2 for Cart\Currency::format(), called in /public_html/system/storage/modification/catalog/controller/product/product.php on line 883 and defined in /public_html/system/library/cart/currency.php on line 24
2018-02-20 12:36:23 - PHP Notice: Undefined variable: currency in /public_html/system/library/cart/currency.php on line 25
2018-02-20 12:36:23 - PHP Notice: Undefined index: in /public_html/system/library/cart/currency.php on line 25
2018-02-20 12:36:23 - PHP Notice: Undefined variable: currency in /public_html/system/library/cart/currency.php on line 26
2018-02-20 12:36:23 - PHP Notice: Undefined index: in /public_html/system/library/cart/currency.php on line 26
2018-02-20 12:36:23 - PHP Notice: Undefined variable: currency in /home/velogidd/public_html/system/library/cart/currency.php on line 27
2018-02-20 12:36:23 - PHP Notice: Undefined index: in /home/velogidd/public_html/system/library/cart/currency.php on line 27
2018-02-20 12:36:23 - PHP Notice: Undefined variable: currency in /public_html/system/library/cart/currency.php on line 30
2018-02-20 12:36:23 - PHP Notice: Undefined index: in /public_html/system/library/cart/currency.php on line 30
Текст файла Product.php
if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {
$data['next_price'] = $this->currency->format($this->tax->calculate($product_info_next['price'], $product_info_next['tax_class_id'], $this->config->get('config_tax')));
} else {
$data['next_price'] = false;
}
Текст файла currency.php
public function format($number, $currency, $value = '', $format = true) {
$symbol_left = $this->currencies[$currency]['symbol_left'];
$symbol_right = $this->currencies[$currency]['symbol_right'];
$decimal_place = $this->currencies[$currency]['decimal_place'];
if (!$value) {
$value = $this->currencies[$currency]['value'];
}
В интернете пытался найти похожую проблему, наткнулся на эту ссылку еще не проверял.
Подскажите может кто сталкивался или знает что делать? чтобы автора лишний раз не дергать.