- Posts: 299
- Thank you received: 2
Importing categories
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Chrome v 40.0.2214.93 m (64-bit)
-- Error-message(debug-mod must be tuned on) -- : no error message just blank page
HI,
I am about to start a webshop selling filters for cars and other trucks and machines.
THere are a lot of different products as their catalog are around 800 pages of products.
All to be in HikaShop webshop.
Only the categories has to be hundreds...
Now I want to import all categories from an excel file that is saved as a semi colon separated csv file UTF-8.
There are one main category Volvo BM and then the rest is sub categories on the second level.
Just wanted to try two levels first. The end will be like thre levels of categories and then products in the third category level.
Like this:
Machine / Machine model / Motor type
The files looks like this:
etc etc.
But I can't get it working...
Is the file set up the wrong way or what can be wrong?
I have tried both with loading the csv file and to copy all in the txt file and pasting it into the text import field...
Still no go...
Any help is appreciated.
Thanks
Micke
Please Log in or Create an account to join the conversation.
parent_category and categories
For example if your categories looks like
Volvo BM > 430 > Diesel,
your csv file will looks like:
Please Log in or Create an account to join the conversation.
I think I get it.I have set it up like this:
Volvo BM > 24
> 25
> 35
Or am I wrong?
I have like at least 100 categories under Volvo BM (models of Volvo BM) then I will start adding different filters and oils under each model.
So primary I will just need Volvo BM > 24, Volvo BM 25 etc...
So if I want to add a new Machine category after Volvo BM I just set the csv file up like:
Please Log in or Create an account to join the conversation.
I tried to set it up like this:
IMported it n HikaShop and the categories was indeed created but only Volvo BM > 350 Boxer and Volvo BM > 470 BisonWhy wasn't the subcategories 24,25,35 etc created?
Please Log in or Create an account to join the conversation.
Categories with only numbers in name are ignored.
Looks like a bug. I will take a look and let you know.
Please Log in or Create an account to join the conversation.
So maybe I should not add the product_category;Volvo BM line....
Please Log in or Create an account to join the conversation.
In administrator\components\com_hikashop\helpers\import.php on line 831
where $v is category name.
Change line 831 to
for categories import, than change it back.
I'm not sure about implications of this change for products import.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
...is there any way to import Category Description ?
Please Log in or Create an account to join the conversation.
Also I don't quite get it.
First I imported catgories on three levels
Volvo BM > A-Serien > A20
Volvo BM > A-Serien > A20C
etc.
Like this:
Then just to try I wanted to add some products like this:
What have I done wrong?You need 9 'arguments' per line
Isn't it possible to add a product under a third level category?
Please Log in or Create an account to join the conversation.
If your categories have unique names(e.g. you don't have several A20 categories), you don't have to set parent_category if category already exists.
Values should be enclosed in quotes, otherwise semicolon is as column separator.
Your last 3 values in each line are wrong.
Volvo BM > A-Serien
Volvo BM > A20
If you want to create/add product to category A20 under A-Serien category, it should be
Please Log in or Create an account to join the conversation.
@Pajerchin:
Not via the interface of HikaShop.
What you can do is export the data of the hikashop_category table of your database via phpmyadmin and fill in the descriptions in that CSV and then import back the CSV in your database via phpmyadmin.
Please open a new thread for new questions.
Please Log in or Create an account to join the conversation.