Page 1 of 1
Import not working [Version 4.0.7]
Posted: 04 Jul 2023, 15:18
by mauriziomomix
Hello, I'm trying to setup the import process, starting from a simple csv file, obtained from the output (adding one row).
Every try fails.
The system recognizes the presence of one new record, warns about the risk of overwriting existing items, but nothing else happens.
Any suggestions?
Thanks in advance
Maurizio
Re: Import not working [Version 4.0.7]
Posted: 05 Jul 2023, 18:47
by Jan
Hi, do you get the same problem with latest Beta?
https://github.com/PhocaCz/PhocaCart/re ... 8Beta6.zip
Jan
Re: Import not working [Version 4.0.7]
Posted: 05 Jul 2023, 22:21
by mauriziomomix
Hello Jan, thanks for replying me.
I just tried using the 4.0.8Beta6 but the result is the same.
I have an export file containing 1 product.
I added one product (with different ID and name).
The system detect that there are 2 product and warns about overwriting the content.
No update/add is starting pressing the Import button.
One question: is it correct that the first row in the export file is duplicated (see the following sample)?
id title alias sku
ID Title Alias SKU
Thanks in advance
Maurizio
Re: Import not working [Version 4.0.7]
Posted: 06 Jul 2023, 11:26
by Jan
Hi, yes, this is correct, the first row is column name in database, the second is human readable title.
1) you can try to export/import XML in case the CSV makes problems for your
2) you can try to debug the import too - if you open javascript console in e.g. Chrome extension, you can see if there is no error while importing:
When you upload the CSV and then you click on Import button, AJAX request will run and you can see in DevTools (in Network tab) the request. Mostly if there is an error, you get 500 message (red message) including the error message there
Jan