@niknik_ykt
Не понимаю почему все это работает.

Как ПРАВИЛЬНО «влить» одну таблицу exel в другую без потери структры?

Скачал список товаров из Контура (аналог 1С) в формате xlsx объемом в 4500+ строк, чтобы залить в на сайт OpenCart (3.0.2.0). Потом скачал образец уже из магазина. Последний оказался на порядок сложнее первого - множество столбцов и листов. Как человек никогда не имевший дело с exel, столкнулся с проблемой объединения этих таблиц, чтобы потом можно было импортировать на сайт. Как это делается? Может есть какие нибудь онлайн решения или плагины?

UPD:
Использую этот модуль
Вывод на экране:
6474039ad1e6e256536602.png
2023-05-29 1:24:39 - PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /home/seller/web/my.site.com/public_shtml/system/library/export_import/Classes/PHPExcel/Reader/Excel2007.php on line 88
2023-05-29 1:24:39 - PHP Warning:  simplexml_load_string(): application/vnd.oasis.opendocument.spreadsheet in /home/seller/web/my.site.com/public_shtml/system/library/export_import/Classes/PHPExcel/Reader/Excel2007.php on line 88
2023-05-29 1:24:39 - PHP Warning:  simplexml_load_string(): ^ in /home/seller/web/my.site.com/public_shtml/system/library/export_import/Classes/PHPExcel/Reader/Excel2007.php on line 88
2023-05-29 1:24:39 - PHP Unknown:  implode(): Passing glue string after array is deprecated. Swap the parameters in /home/seller/web/my.site.com/public_shtml/system/library/export_import/Classes/PHPExcel/Reader/OOCalc.php on line 538

2023-05-29 1:24:41 - PHP Exception:  Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''2235',0,'',1,350,0,NOW(),NOW(),NOW(),0,1,1,0,0,0,0,0,'1','0','1','1')' at line 1<br />Error No: 1064<br />INSERT INTO oc_product (`product_id`,`quantity`,`sku`,`upc`,`ean`,`jan`,`isbn`,`mpn`,`location`,`stock_status_id`,`model`,`manufacturer_id`,`image`,`shipping`,`price`,`points`,`date_added`,`date_modified`,`date_available`,`weight`,`weight_class_id`,`status`,`tax_class_id`,`viewed`,`length`,`width`,`height`,`length_class_id`,`sort_order`,`subtract`,`minimum`) VALUES (57,980,'','','','','','','',,'2235',0,'',1,350,0,NOW(),NOW(),NOW(),0,1,1,0,0,0,0,0,'1','0','1','1'); in /home/seller/web/my.site.com/public_shtml/system/library/db/mysqli.php on line 40
2023-05-29 1:24:41 - PHP Notice:  Trying to access array offset on value of type null in /home/seller/web/my.site.com/public_shtml/admin/model/extension/export_import.php on line 62

В логах open cart:
2023-05-29 1:24:39 - PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /home/seller/web/my.site.com/public_shtml/system/library/export_import/Classes/PHPExcel/Reader/Excel2007.php on line 88
2023-05-29 1:24:39 - PHP Warning:  simplexml_load_string(): application/vnd.oasis.opendocument.spreadsheet in /home/seller/web/my.site.com/public_shtml/system/library/export_import/Classes/PHPExcel/Reader/Excel2007.php on line 88
2023-05-29 1:24:39 - PHP Warning:  simplexml_load_string(): ^ in /home/seller/web/my.site.com/public_shtml/system/library/export_import/Classes/PHPExcel/Reader/Excel2007.php on line 88
2023-05-29 1:24:39 - PHP Unknown:  implode(): Passing glue string after array is deprecated. Swap the parameters in /home/seller/web/my.site.com/public_shtml/system/library/export_import/Classes/PHPExcel/Reader/OOCalc.php on line 538

2023-05-29 1:24:41 - PHP Exception:  Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''2235',0,'',1,350,0,NOW(),NOW(),NOW(),0,1,1,0,0,0,0,0,'1','0','1','1')' at line 1<br />Error No: 1064<br />INSERT INTO oc_product (`product_id`,`quantity`,`sku`,`upc`,`ean`,`jan`,`isbn`,`mpn`,`location`,`stock_status_id`,`model`,`manufacturer_id`,`image`,`shipping`,`price`,`points`,`date_added`,`date_modified`,`date_available`,`weight`,`weight_class_id`,`status`,`tax_class_id`,`viewed`,`length`,`width`,`height`,`length_class_id`,`sort_order`,`subtract`,`minimum`) VALUES (57,980,'','','','','','','',,'2235',0,'',1,350,0,NOW(),NOW(),NOW(),0,1,1,0,0,0,0,0,'1','0','1','1'); in /home/seller/web/my.site.com/public_shtml/system/library/db/mysqli.php on line 40
2023-05-29 1:24:41 - PHP Notice:  Trying to access array offset on value of type null in /home/seller/web/my.site.com/public_shtml/admin/model/extension/export_import.php on line 62
  • Вопрос задан
  • 77 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы