romper Posted June 17, 2017 Share Posted June 17, 2017 (edited) Hello, I import products through CSV import and it works great. However I can not import multiple categories and its subcategories. I have following tree of categories and subcategories that one of my product belongs to. Backpacks (main category) Bicycle backpacks(subcategory) Backpacks (main category) Bags(subcategory) Travel (main category) Bags (subcategory) In my .CSV file I refer to this category tree in this way: Categories (x,y,z...) Backpack, Bicycle backpacks, Backpacks, Bags, Travel, Bags. CSV importer links some but not all categories and subcategories with a product. How to solve it. How can I match all categories and subcategories with a product. Thank you, Edited June 18, 2017 by romper (see edit history) Link to comment Share on other sites More sharing options...
romper Posted June 18, 2017 Author Share Posted June 18, 2017 (edited) I solved my issue. If you want to transform your category and subcategory tree into csv import format , you should use slash / to specify dependencies between your category and subcategories. If you have more than one category, you should separate them by comma. So my csv import category table looks like this: Backpacks/Bicycle backpacks, Backpack/Bags, Travel/Bags Edited June 18, 2017 by romper (see edit history) 1 Link to comment Share on other sites More sharing options...
Joro Posted February 28, 2018 Share Posted February 28, 2018 I've been struggling with this for over a month. My Categories csv loads perfectly but when I import Products, additional categories are created. The / method leaves me with a a tree with sub categories within Parent categories and vice versa. Prestashop support are useless, Teapot never get back to me, I have spent nearly £1000 on 'Experts' who just seem interested in taking money. Are there any Experts on here that can give me real advice on how to correctly format these sheets? Link to comment Share on other sites More sharing options...
Andrea Bobolini Posted October 7, 2019 Share Posted October 7, 2019 Just Use category id instead of the words. Put the last ID of the category. Example Home(id:1),Bycicles(id:2), Wheels(id:3) in the spreadsheet at the voice Category x,y,z just put the number 3 Link to comment Share on other sites More sharing options...
christokieser Posted January 11, 2020 Share Posted January 11, 2020 I managed to sort out the issues. Its a easy work around... Basically you need to do a level by level import... 1. In the import CSV file, first import your main Categories under the Name coloum and under Parent you add "HOME", this essentially adds your main categories under HOME as the parent... 2. Import the CSV again, this time replace the HOME with the name of the categories in file 1 in the parent coloum. Please see example below My Categories are Printers > HP Printer IMPORT FILE 1 Name = Printers | Parent = HOME IMPORT FILE 2- Do not delete old categories, remove the tick this will update the current categories Name = HP Printer | Parent = Printers Regards 1 Link to comment Share on other sites More sharing options...
madpugger Posted July 7, 2021 Share Posted July 7, 2021 On 1/11/2020 at 2:39 PM, christokieser said: I managed to sort out the issues. Its a easy work around... Basically you need to do a level by level import... 1. In the import CSV file, first import your main Categories under the Name coloum and under Parent you add "HOME", this essentially adds your main categories under HOME as the parent... 2. Import the CSV again, this time replace the HOME with the name of the categories in file 1 in the parent coloum. Please see example below My Categories are Printers > HP Printer IMPORT FILE 1 Name = Printers | Parent = HOME IMPORT FILE 2- Do not delete old categories, remove the tick this will update the current categories Name = HP Printer | Parent = Printers Regards Expand I Know this is an old thread but I've come across it a few times so far so hope this helps someone! Category Import is a right pain in PS. It uses a parent category to build the tree, but if the parent doesn't exist, it doesn't create it. Therefore you need to organise your import CSV (excel sheet easiest) by tree level. I have added a new column in my import sheet and ignore this, but I order by A>Z in this column and it keeps the import in the correct order for PS. (highlighted in green) Note the Cat ID is all over the place, this is because the categories were initially added manually as we built the store. You need to "manually" work out (could prob do a formula) what the category level is, but PS imports line by line, so it will create HOME, then Accessories and so on. In the end, you'll then end up with an organised tree. As for product import, I am not sure (as so far we have stayed away from categories with the same name under different parents) but as far as I am aware, you can do one of two things: 1. In Categories (x,y,z...) you can put Parent/Category - so lets say in our case we want Accessories under home, and Accessories under Scenics. We could put Home/Accessories, Scenics/Accessories. I would need to do some testing to see if you need the full tree - ie. Home/Accessories, Home/Scenics/Accessories. 2. We can use ID. I have again not tested this yet as not had the need, but if we can use the ID, its fairly straightforward to setup a formula to pick the IDs. Currently for us, we use 5 category columns in our product import sheet. These are data validated against our Category sheet (in screenshot) to ensure they are valid. They are then Concatenated if they are not empty cells. So it would be very easy to just take the Category ID instead. I am happy to share the formulas etc we use for this if anyone wants. I've tried to make it as simple as possible for the end user who is actually populating the product imports when new items are announced. Link to comment Share on other sites More sharing options...
cookie84 Posted October 25, 2021 Share Posted October 25, 2021 (edited) On 7/7/2021 at 8:06 AM, madpugger said: I Know this is an old thread but I've come across it a few times so far so hope this helps someone! Category Import is a right pain in PS. It uses a parent category to build the tree, but if the parent doesn't exist, it doesn't create it. Therefore you need to organise your import CSV (excel sheet easiest) by tree level. I have added a new column in my import sheet and ignore this, but I order by A>Z in this column and it keeps the import in the correct order for PS. (highlighted in green) Note the Cat ID is all over the place, this is because the categories were initially added manually as we built the store. You need to "manually" work out (could prob do a formula) what the category level is, but PS imports line by line, so it will create HOME, then Accessories and so on. In the end, you'll then end up with an organised tree. As for product import, I am not sure (as so far we have stayed away from categories with the same name under different parents) but as far as I am aware, you can do one of two things: 1. In Categories (x,y,z...) you can put Parent/Category - so lets say in our case we want Accessories under home, and Accessories under Scenics. We could put Home/Accessories, Scenics/Accessories. I would need to do some testing to see if you need the full tree - ie. Home/Accessories, Home/Scenics/Accessories. 2. We can use ID. I have again not tested this yet as not had the need, but if we can use the ID, its fairly straightforward to setup a formula to pick the IDs. Currently for us, we use 5 category columns in our product import sheet. These are data validated against our Category sheet (in screenshot) to ensure they are valid. They are then Concatenated if they are not empty cells. So it would be very easy to just take the Category ID instead. I am happy to share the formulas etc we use for this if anyone wants. I've tried to make it as simple as possible for the end user who is actually populating the product imports when new items are announced. Expand i would like this if you still using prestashop Edited October 25, 2021 by cookie84 forgot to add text (see edit history) Link to comment Share on other sites More sharing options...
madpugger Posted October 27, 2021 Share Posted October 27, 2021 On 10/25/2021 at 10:18 PM, cookie84 said: i would like this if you still using prestashop Expand Sure, send me a PM with what you are looking for... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now