Версия 1.5.6.1 Подскажите как сделать поля обязательными для заполнения. Вот как тут Подскажите, для примера, как сделать цену обязательной для заполнения.
файл \admin\controller\catalog\product.php например найти Код: if ((utf8_strlen($this->request->post['model']) < 1) || (utf8_strlen($this->request->post['model']) > 64)) { $this->error['model'] = $this->language->get('error_model'); } и вставить Код: if ((utf8_strlen($this->request->post['price']) < 1) || (utf8_strlen($this->request->post['price']) > 10)) { $this->error['price'] = $this->language->get('error_price'); } итд по примеру в коде
Закомментировал старый код, вставил ваш Код: if ((utf8_strlen($this->request->post['price']) < 1) || (utf8_strlen($this->request->post['price']) > 10)) { $this->error['price'] = $this->language->get('error_price'); } /* if (isset($this->request->post['price'])) { $this->data['price'] = $this->request->post['price']; } elseif (!empty($product_info)) { $this->data['price'] = $product_info['price']; } else { $this->data['price'] = ''; } */ что - то не помогло(