CSV import of custom product characteristics

  • Posts: 4
  • Thank you received: 0
12 years 9 months ago #40333

I want to make a bookstore and I have separate product characteristics as isbn number, can I import this filed from csv file to hika shop ?

Thanks!
:)

Please Log in or Create an account to join the conversation.

  • Posts: 96
  • Thank you received: 14
12 years 9 months ago #40387

I have been strugling with the hika csv's a lot in the past 2 months and i've learned:

  • If you want to automate the characteristics creation it can't be done trought csv import as you do for categories tree. The best way to do it (an the fastest) is to manually edit the table *****_hikashop_characteristics via phpMyAdmin. (it sounds more dificult than it actually is), more on this after the list!
  • Is extremely helpfull to have a very organized set of spreadsheets (excell files) that reflects the overall structure of your store, and have those spreadsheets well organized as well. Think about creating a folder structure (on your computer) that reflects the structure of your categories and subcategories then put inside those folder the csv's related to those products. (this might be a little bit more complex to do if you have lots of products attached to many categories at once) this way is more easy/safe make modifications to only certain areas of your shop, i allways prefer to avoid mass modifications via csv import, not because it can't be done but imagine how dificult could be to find an error on a product import containing more than 10000 products!
  • Use the export feature on your product listing and have a look on how Hikashop expects you to create your own csv. Remember that you don't need to include all those rows in your csv, feel free to remove the ones you're not going to use at the begining and progresively add the remaining rows when you feel you need them, hikashop is pretty inteligent on recognizing and sorting your csv data.

---Before beginin with this part i suggest you to create a couple of characteristics with variants so you have some data on de database tables to analize on the next steps.----

For creating a lot of characteristics with little to no pain you need to go to your phpMyAdmin area of your webhost and search for this tabble:



Then export it to csv using the export tool you find here:



You have to indicate the csv type of file of the options you find when you click on the export command.

If everything is ok try opening that file with excell or openoffice(i use open office) and indicate that you're using the comma as separator. Now you will have a document having your characteristics on three colums, may be you don't see the row names and that's because in the csv export (in phpMyAdmin) you have to especify that you want them, there's a checkbox near the end of the export options that ask you for "include name of the colums on the first row" or something similar (my system is italian) select that option and you will have your row names.

Your csv should be something like this immage (i've added color just for visual reference)



Where the first row "characteristic_id" is related to the ID of the characteristic in general, and this number should be unique for each item on each row no matter if that row reffers to a characteristic or a variant. I think is a number used by the system and i have no intentions to go deeper on that subject.
The second row "characteristic_parent_id" is to tell Hikashop if that row is relative to a caracteristic or to a variant of some characteristic, in fact you could see that the row containing the word "Color:" have a parent id value of 0 this says to hikashop that it is a characteristic while the rows containing "red, green and blue" has a characteristic_parent_id equal to the "characteristic_id" of "Color:" this tells hikashop that red, green and blue are variants inside color.

That's it, folowing this logic you can create as many characteristics/variants as you want almost automatically!

When you finish with your file you have to import that data again into the *****_hikashop_characteristics table on your database using the import function in phpMyAdmin watching that you're actually importing de data into the right table, you can se if you're importing into the right place looking here:



Attacched there is an immage with the configuration of the csv import that works for me.

I choose to skip the first line on the import because i know that those are the row names and i dont think is cool to have them twice in the table.

Then i choose to replace the hole data with the one i'm importing because i began with the exported file containing all the information already in the table, use it with discretion.

If everything goes as expected now you can go to your hikashop characteristics control pannel and you will find your brand new characteristics with variants as created in your excell file.

I hope this information was usefull and please share your results.

Last edit: 12 years 9 months ago by protorob.
The following user(s) said Thank You: hound

Please Log in or Create an account to join the conversation.

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
12 years 9 months ago #40401

The following comment caught my eye:

... a very organized set of spreadsheets ... that reflects the structure of your categories and subcategories ...

I agree!
Also helps to obey the first rule of computing - keep a backup!

Please Log in or Create an account to join the conversation.

  • Posts: 96
  • Thank you received: 14
12 years 9 months ago #40402

Yes, actually i'm dealing with something like 10k products in near 100 diferent categories and each product having an average of 5 variants each, if i miss something i have to find and repair efficiently, i hope hikashop can hold all this stress, i'm wating to load all the products and configure all the payment stuff before i get the business edition and having all things organized this way let me a broader safe area in the case that when upgrading to the next joomla version and hikashop everything goes out of control.

The following user(s) said Thank You: aleks.ns

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
12 years 9 months ago #40444

Thank you for your answer, I'll try to read through your instructions as soon as possible and see if I can solve the problem.

best regards
Aleksandar

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 9 months ago #40530

Hi,

From what I understand, isbn numbers are data attached directly to the product as "extra" information, not characteristics (in the sense of HikaShop).
In that case, you should create a custom field of the table "product" (commercial editions) and then you will be able to import your isbn numbers in that custom field of your products when you import your products data. As protorob said, you can create first a product with the data filled and then export it to see how your CSV should look like.

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
12 years 9 months ago #40536

Yes, I would like to have custom product fileds (for example isbn, author, year, format etc) and I would like to have possibilty for import / export of books, so it seems that products fields are supported by commerctial version and I have to consider which one to buy...

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 9 months ago #40715

Yes. Both commercial editions will allow you to do that.

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
12 years 8 months ago #40733

and my two last questions before buying:

Does Hishop support following:

1. mulitlingual store (Russian / Swedish) , with multilingual products
2. pay with invoice

best regards
aleks

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 8 months ago #40956

1. Yes. On Joomla 1.5 it's done with JoomFish. On Joomla 2.5 it's done with Falang. The support of Falang will be available in next release of HikaShop but we already have a pre version on our end which is compatible with it. If you need it, you can request it via our contact form:
www.hikashop.com/en/contact-us.html
Please mention your HikaShop edition in your message.

2. I'm not sure what you mean by that.
I suppose that you're talking about paying at the brick and mortar store ? In that case you can use the collect on delivery payment plugin. Just rename it to what you want as well as the corresponding translations via translation override:
www.hikashop.com/en/download/languages.html#modify

Please Log in or Create an account to join the conversation.

Time to create page: 0.107 seconds
Powered by Kunena Forum