- Posts: 56
- Thank you received: 0
i want to add 3 level of category to my csv
- ebrahimahamdi
-
Topic Author
- Offline
hello , i want to add 3 level deep categories to my csv file. and i know that i it has level of categories but i need one more. i read your answers about exact question in another topic but it didn't work well.
Please Log in or Create an account to join the conversation.
So what CSV are you using ?
If you followed our instructions in the other threads or on our CSV documentation it should normally work so I can only guess that you missed something.
Please Log in or Create an account to join the conversation.
- ebrahimahamdi
-
Topic Author
- Offline
- Posts: 56
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- ebrahimahamdi
-
Topic Author
- Offline
- Posts: 56
- Thank you received: 0
Please Log in or Create an account to join the conversation.
What exact format ?
What CSV are you using ?
Please understand that we are not able to provide you any useful help if we do not have the basic details about what you're doing, with which content and what instructions you followed.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
- ebrahimahamdi
-
Topic Author
- Offline
- Posts: 56
- Thank you received: 0
Please Log in or Create an account to join the conversation.
So in the CSV that you got when you used the export button, you must have seen "empty" rows at the beginning which only contains the category structure.
You can even do a test on our demo website if you want: demo.hikashop.com/administrator/index.ph...ikashop&ctrl=product
You'll see that thanks to such lines, you can add as many levels of categories as you want with a CSV.
Our CSV documentation also explains what to write in the parent_category and categories columns in order to do that:
www.hikashop.com/support/documentation/73-hikashop-import.html
Importing product categories
Then, you can also have a categories column where you can put a list of categories id or a list of categories namekey.
For example:
product_code,product_name,categories
my_product_1,My first product,"2,13"
This will add one product with 2 categories attached: the category with the id 2 and the one with the id 13. You can find ids of categories on the category listing in the column called ID on the right of the listing.
You can import a tree of categories which will be created if they don't exist already in HikaShop with the option "Create automatically missing categories" set to "yes". For example, you could have something like:
parent_category,categories
product category,main category 1;main category 2;main category 3
main category 1,sub category 1;sub category 2
You could also mix both products and categories in the CSV:
product_code,parent_category,categories
,main category 1,sub category 2
my_product_1,main category 1,sub category 2
Please Log in or Create an account to join the conversation.
- ebrahimahamdi
-
Topic Author
- Offline
- Posts: 56
- Thank you received: 0
Please Log in or Create an account to join the conversation.