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

При импорте товаров Universal Import/Export Pro ошибка noindex


Recommended Posts

При импорте товаров Universal Import/Export Pro выдаёт ошибку Undefined index: noindex in file /var/www/zalove.k/data/www/storage/modification/admin/model/catalog/product.php on line 27
This error is generally because you have some custom module that tries to insert some data into the database
Try to set in Step 3 > Extra functions > Custom fields a custom field named "noindex"

 

в product.php on line 27

$this->db->query("INSERT INTO " . DB_PREFIX . "product SET " . $univimp_extra . " model = '" . $this->db->escape($data['model']) . "', sku = '" . $this->db->escape($data['sku']) . "', upc = '" . $this->db->escape($data['upc']) . "', ean = '" . $this->db->escape($data['ean']) . "', jan = '" . $this->db->escape($data['jan']) . "', isbn = '" . $this->db->escape($data['isbn']) . "', mpn = '" . $this->db->escape($data['mpn']) . "', location = '" . $this->db->escape($data['location']) . "', quantity = '" . (int)$data['quantity'] . "', minimum = '" . (int)$data['minimum'] . "', subtract = '" . (int)$data['subtract'] . "', stock_status_id = '" . (int)$data['stock_status_id'] . "', date_available = '" . $this->db->escape($data['date_available']) . "', manufacturer_id = '" . (int)$data['manufacturer_id'] . "', shipping = '" . (int)$data['shipping'] . "', price = '" . (float)$data['price'] . "', points = '" . (int)$data['points'] . "', weight = '" . (float)$data['weight'] . "', weight_class_id = '" . (int)$data['weight_class_id'] . "', length = '" . (float)$data['length'] . "', width = '" . (float)$data['width'] . "', height = '" . (float)$data['height'] . "', length_class_id = '" . (int)$data['length_class_id'] . "', status = '" . (int)$data['status'] . "', noindex = '" . (int)$data['noindex'] . "', tax_class_id = '" . (int)$data['tax_class_id'] . "', sort_order = '" . (int)$data['sort_order'] . "', date_added = NOW(), date_modified = NOW()");

        $product_id = $this->db->getLastId();

        if (isset($data['image'])) {
            $this->db->query("UPDATE " . DB_PREFIX . "product SET image = '" . $this->db->escape($data['image']) . "' WHERE product_id = '" . (int)$product_id . "'");
        }

В шаге 3, скрин во вложении, Добавила noindex, но не помогло. Может что-то сможете посоветовать?

12.docx

Edited by olhaT
Link to comment
Share on other sites


Cпасипотому что за ответ, хотелось бы попропотому чтовать решить по другому. Да как импорт скорее всего единоразовый.

Link to comment
Share on other sites


3 часа назад, olhaT сказал:

noindex = '" . (int)$data['noindex']

убери нафиг это. или добавь поле в БД. как я понимаю, это нужно для запреи ингдексации товара.

Link to comment
Share on other sites

  • 1 month later...

Привет! Подскажите, как решили пробему? Мне добавление поля на 3 шаге тоже не помогло. Заранее благодарен! 

Ошибка 

on line 23 This error is generally because you have some custom module that tries to insert some data into the database
Try to set in Step 3 > Extra functions > Custom fields a custom field named "noindex" 

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.