Search our site
Forum Search
Google Site Search
|
insight
ECT Moderator
USA
4479 Posts |
Posted - 01/26/2021 : 16:26:12
So, for example, if I take your one line of data from Notepad in your last message, correct the Y value to become 1, change the two N values to become 0 and delete all the empty columns it will look like this: pID,pName,pSection,pPrice,pWholesalePrice,pShipping,pShipping2,pWeight,pinstock,pDropship,ptitle,pMetaDesc,pLongDescription alp3033,"Alpha Coral, loose fitting, casual short sleeved dress 6437","181,418,291,818,194,000,000,000",125,62.5,1,0,1,1,0,"Alpha Coral loose fitting, casual short sleeved dress","Alpha Coral loose fitting, casual short sleeved dress with two side pockets.","Alpha Coral, loose fitting, casual short sleeved dress with two side pockets.<br />" and will upload just fine . That would be a good basis to work on. Note that your pSection value is pretty strange, should just be the number of a real category and not "181,418,291,818,194,000,000,000", also I don't think you need pShipping2, that would be for a multi-language store. Peter Professional ecommerce web hosting services Shared hosting Windows & Linux | Dedicated servers | Domains | SSL Ecommerce Templates specialists since 2003 https://servelink.com
Edited by - insight on 01/26/2021 16:26:58
|
JH10
Advanced Member
United Kingdom
304 Posts Pre-sales questions only (More Details...)
|
Posted - 01/27/2021 : 05:54:53
Hi Peter I think I did the alterations as suggested but still getting errors Rows successfully updated 1
Rows unchanged or where pID not found 1570
This page took: 1.4027 seconds
That is 1.4027 seconds per row
Rows where pID not found 1570 alp3033 alp3033-0001 alp3042 alp3042-0001 alp3042-0003 alp3046 alp3046-0004 The Complete List.
The csv now looks like this: pID,pName,pSection,pPrice,pWholesalePrice,pShipping,pWeight,pinstock,pDropship,pManufacturer,ptitle,pMetaDesc,pDescription,pLongDescription alp3033,"Alpha Coral, loose fitting, casual short sleeved dress 6437","181,418,291,818,194,000,000,000",125,62.5,1,1,1,0,,"Alpha Coral loose fitti0g, casual short sleeved dress","Alpha Coral loose fitting, casual short sleeved dress with two side pockets.",,"Alpha Coral, loose fitting, casual short sleeved dress with two side pockets.<br />" alp3033-0001,"Alpha Coral, loose fitting, casual short sleeved dress 6437 - 10 - Colour similar to photo",,125,62.5,1,1,1,0,,"Alpha Coral loose fitting, casual short sleeved dress","Alpha Coral loose fitting, casual short sleeved dress with two side pockets.",with two side pockets.,"Alpha Coral, loose fitting, casual short sleeved dress with two side pocket's.<br />" alp3042,Alpha Studio olive ankle length dress. Sleeveless with a V-neckline 8346,"181,418,181,944,182,000,000,000",137.5,70.83,1,1,2,0,,"Alpha Studio olive ankle length dress. Sleveless with a V-neckline at the front, deeper at the back","Alpha Studio olive ankle length dress. Sleveless with a V-neckline at the front, deeper at the back with gathering. easy pull on dress. Cotton jersey panels to both sides.",deeper at the back with gathering.,"Alpha Studio olive ankle length dress. Sleeveless with a V-neckline at the front, deeper at the back<br />with gathering. easy pull on dress. Cotton jersey panels to both sides.<br />"
I believe it was said I should not do the upload using the Excel file, better with Note Pad, but it seems the is no way to control this and I do not wish to uninstall Excel.
Thanks for all the help given. Very much appreciated.
John
|
JH10
Advanced Member
United Kingdom
304 Posts Pre-sales questions only (More Details...)
|
Posted - 01/27/2021 : 06:21:02
I noticed a comma after pLongDescription It started off as pLongDescription", I tried pLongDescription" pLongDescription,"
But they all produced errors
|
insight
ECT Moderator
USA
4479 Posts |
Posted - 01/27/2021 : 10:23:07
quote: The csv now looks like this...
That seems to work fine now, I got this using the revised data: Rows successfully added 3 This page took: 0.0039 seconds That is 0.0013 seconds per row Update Successful ! Peter Professional ecommerce web hosting services Shared hosting Windows & Linux | Dedicated servers | Domains | SSL Ecommerce Templates specialists since 2003 https://servelink.com
|
JH10
Advanced Member
United Kingdom
304 Posts Pre-sales questions only (More Details...)
|
Posted - 01/27/2021 : 12:51:59
The first time I tried this is actually worked and I decided on expansion and it has not worked since. The last try I removed the pselect column as you were a little suspicious of this. But not working.
Result was Rows successfully updated 0 Rows unchanged or where pID not found 5
This page took: 0.0033 seconds Rows where pID not found 5 alp3033 alp3033-0001 alp3042 alp3042-0001 alp3042-0003 File is: you may wish to try pID pName pPrice pWholesalePrice pShipping pWeight pinstock pDropship pManufacturer ptitle pMetaDesc pDescription pLongDescription alp3033 Alpha Coral, loose fitting, casual short sleeved dress 6437 125 62.5 1 1 1 0 Alpha Coral loose fitti0g, casual short sleeved dress Alpha Coral loose fitting, casual short sleeved dress with two side pockets. Alpha Coral, loose fitting, casual short sleeved dress with two side pockets.<br /> alp3033-0001 Alpha Coral, loose fitting, casual short sleeved dress 6437 - 10 - Colour similar to photo 125 62.5 1 1 1 0 Alpha Coral loose fitting, casual short sleeved dress Alpha Coral loose fitting, casual short sleeved dress with two side pockets. with two side pockets. Alpha Coral, loose fitting, casual short sleeved dress with two side pocket's.<br /> alp3042 Alpha Studio olive ankle length dress. Sleeveless with a V-neckline 8346 137.5 70.83 1 1 2 0 Alpha Studio olive ankle length dress. Sleveless with a V-neckline at the front, deeper at the back Alpha Studio olive ankle length dress. Sleveless with a V-neckline at the front, deeper at the back with gathering. easy pull on dress. Cotton jersey panels to both sides. deeper at the back with gathering. Alpha Studio olive ankle length dress. Sleeveless with a V-neckline at the front, deeper at the back<br />with gathering. easy pull on dress. Cotton jersey panels to both sides.<br /> alp3042-0001 Alpha Studio olive ankle length dress. Sleeveless with a V-neckline 8346 - 10 - Colour similar to photo 137.5 70.8333 1 1 1 0 Alpha Studio olive ankle length dress. Sleveless with a V-neckline at the front, deeper at the back Alpha Studio olive ankle length dress. Sleveless with a V-neckline at the front, deeper at the back with gathering. easy pull on dress. Cotton jersey panels to both sides. deeper at the back with gathering. Alpha Studio olive ankle length dress. Sleeveless with a V-neckline at the front, deeper at the back<br />with gathering. easy pull on dress. Cotton jersey panels to both sides.<br /> alp3042-0003 Alpha Studio olive ankle length dress. Sleeveless with a V-neckline 8346 - 14 - Colour similar to photo 137.5 70.8333 1 1 1 0 Alpha Studio olive ankle length dress. Sleveless with a V-neckline at the front, deeper at the back Alpha Studio olive ankle length dress. Sleveless with a V-neckline at the front, deeper at the back with gathering. easy pull on dress. Cotton jersey panels to both sides. deeper at the back with gathering. Alpha Studio olive ankle length dress. Sleveless with a V-neckline at the front, deeper at the back<br />with gathering. easy pull on dress. Cotton jersey panels to both sides.<br />
Regards John
|
dbdave
ECT Moderator
USA
10408 Posts |
Posted - 01/27/2021 : 12:58:36
quote: Rows unchanged or where pID not found 5
Are you selecting "update" or "add" to database? If you are adding new items, you should select ADD to database. Perhaps you had selected update instead. David
|
JH10
Advanced Member
United Kingdom
304 Posts Pre-sales questions only (More Details...)
|
Posted - 01/27/2021 : 13:26:10
Hi Dave, Your absolutely correct. I am sure I was told somewhere that if the db had data already I had to update but i have to add.
So I tried to load all data and received the error You have the $detlinkspacechar parameter set as "-" but have products where the Static URL or Product Name uses this character and these will not display properly. Consider removing the $detlinkspacechar parameter, or replacing it with a space in the Static URL for these products I wonder if you please can decipher this a little for me?
Many thanks John
|
dbdave
ECT Moderator
USA
10408 Posts |
Posted - 01/27/2021 : 14:23:03
Peter specifically warned you about this is a previous post. Get rid of the hyphens in your product names.
Thanks, David
|
JH10
Advanced Member
United Kingdom
304 Posts Pre-sales questions only (More Details...)
|
Posted - 01/27/2021 : 15:03:08
Thanks David I have removed all Hyphens.
When using csv file upload I am getting the error Adding row: Duplicate entry 'alp3033' for key 'PRIMARY'Line 1, 10621
The pID for Line one is alp3033 The pID for Line two is alp3033 0001 I wonder if this is causing the problem.
pID pName alp3033 Alpha Coral, loose fitting, casual short sleeved dress 6437 alp3033 0001 Alpha Coral, loose fitting, casual short sleeved dress 6437 - 10 - Colour similar to photo
|
insight
ECT Moderator
USA
4479 Posts |
Posted - 01/27/2021 : 15:11:04
No, you already have a product in the database with pID alp3033, so you can only UPDATE that one, not ADD. Clearly, you shouldn't be able to ADD another product with the same pID so you get an error instead, this is by design. https://johnhardy.myectstore.com/Alpha-Coral%2C-loose-fitting%2C-casual-short-sleeved-dress-6437 Peter Professional ecommerce web hosting services Shared hosting Windows & Linux | Dedicated servers | Domains | SSL Ecommerce Templates specialists since 2003 https://servelink.com
|
JH10
Advanced Member
United Kingdom
304 Posts Pre-sales questions only (More Details...)
|
Posted - 01/28/2021 : 01:58:31
Thanks Peter Just to clarify this for me please. When I have a number of products already in the store, and a new list of products for upload, I could have some updated products and some new products in that list.
Do I need to carry out two update operations? 1 Update existing products 2 Add new non existing products.
Regards John
|
Vince
Administrator
42756 Posts |
Posted - 01/28/2021 : 02:33:49
|
|
Shopping Cart Software Forum for Ecommerce Templates |
© 2002-2022 ecommercetemplates.com |
|
|
|