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

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


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');








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



public function remove() {


$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

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


или отсюда ?


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

  • 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.