Здравствуйте!
У нас стоит ваш модуль РАЗНЫЕ ВАЛЮТЫ ДЛЯ ТОВАРОВ С АВТООБНОВЛЕНИЕМ ПО КУРСУ ЦБ
(старая версия видимо)
Мы обновили сайт и теперь в каточку выводится ошибка
Warning: number_format() expects parameter 1 to be double, string given in /home/s/surengb0/stroyassorti.ru/public_html/system/storage/modification/catalog/controller/product/product.php on line 845
Как поправить? Поможете?
$meta_price = ( $data['special'] != false) ? $data['special'] : $data['price'] ;
$meta_price = trim(trim(($data['special'] != false) ? $data['special'] : $data['price'], $this->currency->getSymbolLeft()), $this->currency->getSymbolRight());
$decimal_point_meta_price = $this->language->get('decimal_point') ? $this->language->get('decimal_point') : '.';
$thousand_point_meta_price = $this->language->get('thousand_point')? $this->language->get('thousand_point') : ' ';
$meta_price = str_replace($thousand_point_meta_price, '', $meta_price);
if ( $decimal_point_meta_price != '.' ) {
$meta_price = str_replace($decimal_point_meta_price, '.', $meta_price);
}
845 строка $meta_price = number_format($meta_price, 2, '.', '');
$this->document->addOGMeta('property="product:price:amount"', $meta_price);
$this->document->addOGMeta('property="product:price:currency"', $this->currency->getCode());