[Skip to main content](#vessel-content)

#   Categories during import

##

- **[trogladyte](/forum/user/2197-trogladyte "View trogladyte's Profile")**
- [![trogladyte's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2197-trogladyte "View trogladyte's Profile") Topic Author
- [ Offline](/forum/user/2197-trogladyte)

Less More

- Posts: 279
- Thank you received: 1
-
-

9 years 4 months ago [\#274035](#274035) by [trogladyte](/forum/user/2197-trogladyte "View trogladyte's Profile")  *[Categories during import](/forum/37-import-export-csv-xls/891147-categories-during-import#274035 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.3 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : None  I have imported1k+ products from a 3D Cart export. I've tried importing before and never succeeded. However, this time, the stars aligned or something, and it went very smoothly once I'd played with it a bit. Yay!! Feeling very pleased with myself!! :lol:  The 3D Cart export gave categories (in their product listing export) like this:  BATHROOM/Bathroom Accessories@ACCESSORIES@BATHROOM/Bathroom Accessories/SHELVES@ACCESSORIES/Bathroom Mirrors  I found out that the @ is used to show the start of a new category. So I copied and pasted the category column into Notepad, did a Replace all of @ with , and pasted the altered content back into the CSV. I expected the nested categories to be recognized and created as such.However, the import just created (in the case of the export example above) 4 top level categories (that is, they all had the parent of &quot;product category&quot;) :  BATHROOM/Bathroom Accessories ACCESSORIES BATHROOM/Bathroom Accessories/SHELVES ACCESSORIES/Bathroom Mirrors  I just ended up going through and manually assigning sub-categories to their correct parents, and removing the extra text. But I'm sure there was a more correct way to set up the product&#95;categories column so the import routine would created nested categories.  What did I do wrong? I've cleaned them up now, but I have a second site for this client to do, and I'd rather not have to waste time editing if I can help it. Thanks.  As an aside, I just discovered &quot;Infinite Scolling&quot; - wow, that's very cool. Thank you for that addition!!")* was created by *[trogladyte](/forum/user/2197-trogladyte "View trogladyte's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.3
-- PHP version -- : 5.6
-- Error-message(debug-mod must be tuned on) -- : None

I have imported1k+ products from a 3D Cart export. I've tried importing before and never succeeded. However, this time, the stars aligned or something, and it went very smoothly once I'd played with it a bit. Yay!! Feeling very pleased with myself!! :lol:

The 3D Cart export gave categories (in their product listing export) like this:

BATHROOM/Bathroom Accessories@ACCESSORIES@BATHROOM/Bathroom Accessories/SHELVES@ACCESSORIES/Bathroom Mirrors

I found out that the @ is used to show the start of a new category. So I copied and pasted the category column into Notepad, did a Replace all of @ with , and pasted the altered content back into the CSV. I expected the nested categories to be recognized and created as such.However, the import just created (in the case of the export example above) 4 top level categories (that is, they all had the parent of "product category") :

BATHROOM/Bathroom Accessories
ACCESSORIES
BATHROOM/Bathroom Accessories/SHELVES
ACCESSORIES/Bathroom Mirrors

I just ended up going through and manually assigning sub-categories to their correct parents, and removing the extra text. But I'm sure there was a more correct way to set up the product_categories column so the import routine would created nested categories.

What did I do wrong? I've cleaned them up now, but I have a second site for this client to do, and I'd rather not have to waste time editing if I can help it. Thanks.

As an aside, I just discovered "Infinite Scolling" - wow, that's very cool. Thank you for that addition!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTExNDctY2F0ZWdvcmllcy1kdXJpbmctaW1wb3J0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

9 years 4 months ago [\#274051](#274051) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Categories during import](/forum/37-import-export-csv-xls/891147-categories-during-import#274051 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.3 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : None  I have imported1k+ products from a 3D Cart export. I've tried importing before and never succeeded. However, this time, the stars aligned or something, and it went very smoothly once I'd played with it a bit. Yay!! Feeling very pleased with myself!! :lol:  The 3D Cart export gave categories (in their product listing export) like this:  BATHROOM/Bathroom Accessories@ACCESSORIES@BATHROOM/Bathroom Accessories/SHELVES@ACCESSORIES/Bathroom Mirrors  I found out that the @ is used to show the start of a new category. So I copied and pasted the category column into Notepad, did a Replace all of @ with , and pasted the altered content back into the CSV. I expected the nested categories to be recognized and created as such.However, the import just created (in the case of the export example above) 4 top level categories (that is, they all had the parent of &quot;product category&quot;) :  BATHROOM/Bathroom Accessories ACCESSORIES BATHROOM/Bathroom Accessories/SHELVES ACCESSORIES/Bathroom Mirrors  I just ended up going through and manually assigning sub-categories to their correct parents, and removing the extra text. But I'm sure there was a more correct way to set up the product&#95;categories column so the import routine would created nested categories.  What did I do wrong? I've cleaned them up now, but I have a second site for this client to do, and I'd rather not have to waste time editing if I can help it. Thanks.  As an aside, I just discovered &quot;Infinite Scolling&quot; - wow, that's very cool. Thank you for that addition!!")*

Hi,

On each row of a product, you have two main columns related to the categories:
- the "categories" column where you can have the name of the category of the product
- the "parent_category" column where you can have the name of the parent category of the category of the product
If you have more levels, it's best to have extra lines at the top of the CSV file in order to enter the relations parent/child categories so that HikaShop first insert the categories like you want and then import the products.
On the website where you now have the products properly inserted in their categories, click on the "export" button of the products listing and you'll get a CSV which is like that: firs the categories tree and then the categories referenced for each product row.

I'm glad you like the infinite scroll feature ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTExNDctY2F0ZWdvcmllcy1kdXJpbmctaW1wb3J0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[trogladyte](/forum/user/2197-trogladyte "View trogladyte's Profile")**
- [![trogladyte's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2197-trogladyte "View trogladyte's Profile") Topic Author
- [ Offline](/forum/user/2197-trogladyte)

Less More

- Posts: 279
- Thank you received: 1
-
-

9 years 4 months ago [\#274060](#274060) by [trogladyte](/forum/user/2197-trogladyte "View trogladyte's Profile")  Replied by *[trogladyte](/forum/user/2197-trogladyte "View trogladyte's Profile")* on topic *[Categories during import](/forum/37-import-export-csv-xls/891147-categories-during-import#274060 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.3 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : None  I have imported1k+ products from a 3D Cart export. I've tried importing before and never succeeded. However, this time, the stars aligned or something, and it went very smoothly once I'd played with it a bit. Yay!! Feeling very pleased with myself!! :lol:  The 3D Cart export gave categories (in their product listing export) like this:  BATHROOM/Bathroom Accessories@ACCESSORIES@BATHROOM/Bathroom Accessories/SHELVES@ACCESSORIES/Bathroom Mirrors  I found out that the @ is used to show the start of a new category. So I copied and pasted the category column into Notepad, did a Replace all of @ with , and pasted the altered content back into the CSV. I expected the nested categories to be recognized and created as such.However, the import just created (in the case of the export example above) 4 top level categories (that is, they all had the parent of &quot;product category&quot;) :  BATHROOM/Bathroom Accessories ACCESSORIES BATHROOM/Bathroom Accessories/SHELVES ACCESSORIES/Bathroom Mirrors  I just ended up going through and manually assigning sub-categories to their correct parents, and removing the extra text. But I'm sure there was a more correct way to set up the product&#95;categories column so the import routine would created nested categories.  What did I do wrong? I've cleaned them up now, but I have a second site for this client to do, and I'd rather not have to waste time editing if I can help it. Thanks.  As an aside, I just discovered &quot;Infinite Scolling&quot; - wow, that's very cool. Thank you for that addition!!")*

Thanks, Nicolas, that makes sense, but the tutorial didn't mention that. At least I didn't read it as that, which could also be operator error!! LOL I ended up manually moving them as there was only about 25-30, but good to properly understand the process.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTExNDctY2F0ZWdvcmllcy1kdXJpbmctaW1wb3J0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.067 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
