Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Ошибка на сайте


NaiKonkik
 Share

Recommended Posts

Цитата

if (!empty($this->request->post['quantity'])) {

foreach ($this->request->post['quantity'] as $key => $value) {

$this->cart->update($key, $value);

}

$this->session->data['success'] = $this->language->get('text_remove');

unset($this->session->data['shipping_method']);

unset($this->session->data['shipping_methods']);

unset($this->session->data['payment_method']);

unset($this->session->data['payment_methods']);

unset($this->session->data['reward']);

$this->response->redirect($this->url->link('checkout/cart'));

}

$this->response->addHeader('Content-Type: application/json');

$this->response->setOutput(json_encode($json));

}

public function remove() {

$this->load->language('checkout/cart');

$json = array();

Первая строка это 518.

 

В журнале вот такая ошибка:

2018-04-29 6:08:14 - PHP Warning:  Invalid argument supplied for foreach() in /home/u99423/site.ru/www/system/storage/modification/catalog/controller/checkout/cart.php on line 518

 

когда пытаюсь изменить количество товара в корзине, как поправить HELP пожалуйста! 

Edited by NaiKonkik
Link to comment
Share on other sites


Попробуйте так.

if (!empty($this->request->post['quantity']) && isset($this->request->post['quantity'])) {

 

Link to comment
Share on other sites

А Вы код по этому пути скинули или нет ?

system/storage/modification/catalog/controller/checkout/cart.php 

или отсюда ?

catalog/controller/checkout/cart.php 

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.