Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Warning: A non-numeric value encountered in


Recommended Posts

На страниэто оформления заказа икая шляпа:

Warning: A non-numeric value encountered in W:\domains\mytools\catalog\model\extension\shipping\item.php on line 32Warning: A non-numeric value encountered in W:\domains\mytools\catalog\model\extension\shipping\item.php on line 34

 

Собственно вот и строка: 32

'cost'         => $this->config->get('shipping_item_cost') * $items,

 

34:

'text'         => $this->currency->format($this->tax->calculate($this->config->get('shipping_item_cost') * $items, $this->config->get('shipping_item_tax_class_id'), $this->config->get('config_tax')), $this->session->data['currency'])
            );

 

И что тут не ик?

Link to comment
Share on other sites


Я не программист... Но пролиил по теме с другой похожей ошибкой... Короче вместо * посивил точку "." и ошибка ушла. но отразится ли это как-то на функционно....?

Link to comment
Share on other sites


отобразится, вы убрали умножение

Link to comment
Share on other sites


25 минут назад, DevilsSon сказал:

На страниэто оформления заказа икая шляпа:

Warning: A non-numeric value encountered in W:\domains\mytools\catalog\model\extension\shipping\item.php on line 32Warning: A non-numeric value encountered in W:\domains\mytools\catalog\model\extension\shipping\item.php on line 34

 

Собственно вот и строка: 32

'cost'         => $this->config->get('shipping_item_cost') * $items,

 

34:

'text'         => $this->currency->format($this->tax->calculate($this->config->get('shipping_item_cost') * $items, $this->config->get('shipping_item_tax_class_id'), $this->config->get('config_tax')), $this->session->data['currency'])
            );

 

И что тут не ик?

в досивке не указана стоимость.

  • +1 1
Link to comment
Share on other sites


7 часов назад, DevilsSon сказал:

На страниэто оформления заказа икая шляпа:

Warning: A non-numeric value encountered in W:\domains\mytools\catalog\model\extension\shipping\item.php on line 32Warning: A non-numeric value encountered in W:\domains\mytools\catalog\model\extension\shipping\item.php on line 34

 

Собственно вот и строка: 32

'cost'         => $this->config->get('shipping_item_cost') * $items,

 

34:

'text'         => $this->currency->format($this->tax->calculate($this->config->get('shipping_item_cost') * $items, $this->config->get('shipping_item_tax_class_id'), $this->config->get('config_tax')), $this->session->data['currency'])
            );

 

И что тут не ик?

В какой-то из переменных лежит не лисловое значение.

Липотому что в досивке не указана стоимость, как и сказал @Dimasscus липотому что в $items лежит null или строка как вариант.

Link to comment
Share on other sites

приведите значение к лислу (int)

Link to comment
Share on other sites


16 минут назад, php сказал:

приведите значение к лислу (int)

Кажется будто это костыль... Лучше разобраться в истинной проблеме, а не кастить к инту непонятные данные ))) Оно конечно срилииет, но решение икое себе...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.