Подскажите, что сделать. При удалении или изменении фото в категории или в списке товара появляется ошибка в админке
Deprecated: Function eregi() is deprecated in A:\home\localhost\www\ferro\administrator\components\com_virtuemart\classes\imageTools.class.php on line 186
Что сделать?
Вот в этом блоке, что не так?
/* Generate text to display in error messages */
if (eregi("thumb",$field_name)) {
$image_type = "thumbnail image";
} elseif (eregi("full",$field_name)) {
$image_type = "full image";
} else {
=======================================
Еще один бок вылез. При добавлении товара в корзину появляется следующее
Корзина
Deprecated: Function eregi() is deprecated in A:\home\localhost\www\ferro\administrator\components\com_virtuemart\classes\ps_shipping_method.php on line 188
Deprecated: Function eregi() is deprecated in A:\home\localhost\www\ferro\administrator\components\com_virtuemart\classes\ps_shipping_method.php on line 188
Deprecated: Function eregi() is deprecated in A:\home\localhost\www\ferro\administrator\components\com_virtuemart\classes\ps_shipping_method.php on line 191
Deprecated: Function eregi() is deprecated in A:\home\localhost\www\ferro\administrator\components\com_virtuemart\classes\ps_shipping_method.php on line 191
Deprecated: Function eregi() is deprecated in A:\home\localhost\www\ferro\administrator\components\com_virtuemart\classes\ps_shipping_method.php on line 194
Deprecated: Function eregi() is deprecated in A:\home\localhost\www\ferro\administrator\components\com_virtuemart\classes\ps_shipping_method.php on line 197
Deprecated: Function eregi() is deprecated in A:\home\localhost\www\ferro\administrator\components\com_virtuemart\classes\ps_shipping_method.php on line 197
Название Артикул Цена Количество / Обновить Промежуточный итог
В этом блоке:
if (eregi("LB",$db->f("product_weight_uom")) || eregi("PO",$db->f("product_weight_uom"))) {
$weight = $db->f("product_weight") * 0.4536;
}
elseif (eregi("KG",$db->f("product_weight_uom")) || eregi("KILO",$db->f("product_weight_uom"))) {
$weight = $db->f("product_weight");
}
elseif (eregi("G",$db->f("product_weight_uom"))) {
$weight = $db->f("product_weight") * 0.001;
}
elseif (eregi("OZ",$db->f("product_weight_uom")) || eregi("OU",$db->f("product_weight_uom"))) {
Что-то с картинками. Подскажите!