Hanging on import

  • Posts: 279
  • Thank you received: 1
10 years 9 months ago #141128

-- url of the page with the problem -- : ckdev.info/safety
-- HikaShop version -- :2.2.3
-- Joomla version -- : 3.2
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : Chrome 31.0.1650.63 m
-- Error-message(debug-mod must be tuned on) -- : Can't see any

I have a potential client who has a database of 60k + products. Obviously this would be a crazy job to manually enter. He sent me an export of his inventory in Excel. Unfortunately it is over 30Mb so I can't import in one hit.

As I had never done any import before, I cut and pasted out a very small section of the Excel file (attached). However, when I try to import, HS just sits there thinking and thinking and nothing happens. Having told him, based on what I have read on your site, that HS can import Excel files, I'm not embarrassed it isn't working on such a tiny file.

Is there more I need to do in HS before trying to import? It is a brand new installation with absolutely no mods.

EDIT: After a very long time - well over 10 minutes - I finally got a 500 error.

Last edit: 10 years 9 months ago by trogladyte.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 9 months ago #141237

Hikashop can only import excel files using the format CSV. So you might need to convert it if it's not a CSV.

If you get a 500 error, you can look in your PHP error log for the PHP error message resulting in that 500 error and that will give information on what happened.

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

  • Posts: 279
  • Thank you received: 1
10 years 9 months ago #141254

Ah, what a dummy! Was trying to import a standard Excel file. Saved as a CSV, but every column gave an error like this (this is the first column):

The column 'itemno' is not in the list of possible columns : product_parent_id | product_name | product_description | product_quantity | product_code | product_published | product_hit | product_created | product_sale_start | product_sale_end | product_delay_id | product_tax_id | product_type | product_vendor_id | product_manufacturer_id | product_url | product_weight | product_keywords | product_weight_unit | product_modified | product_meta_description | product_dimension_unit | product_width | product_length | product_height | product_max_per_order | product_access | product_group_after_purchase | product_min_per_order | product_contact | product_display_quantity_field | product_last_seen_date | product_sales | product_waitlist | product_layout | product_average_score | product_total_vote | product_page_title | product_alias | product_price_percentage | product_msrp | product_canonical | price_value | price_value_with_tax | price_currency_id | price_min_quantity | price_access | files | images | parent_category | categories_namekey | categories_image | categories_ordering | categories | related | options. The column data was ignored

I understood (maybe incorrectly) from the tutorial that HS made any columns it didn't have as stock standard. Am I missing a step? I have attached the CSV file.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #141301

Hi,
The best solution will probably be to :
- Create some products and categories manually
- Export them through a CSV file so that you'll be able to know the exact structure that your CSV file needs to have
- Make sure that your CSV file have a good structure and import it back.

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

  • Posts: 279
  • Thank you received: 1
10 years 9 months ago #141351

Done that. HS CSV export is so different to the original there's no way this will work. Guess I'll have to use something else.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 9 months ago #141377

What mohamed means is that you need to change the column names of your CSV to column names of HikaShop. So for example the itemno column name should be changed to product_code
You don't necessarily need to change them all but the more you change the easier it will be after that for you.

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

  • Posts: 279
  • Thank you received: 1
10 years 9 months ago #141378

Hi Nicolas

That's not at all what I got from his post but no matter. The HS exported file structure is so vastly different to the one I attached that I may as well enter every product manually. It would probably be quicker and easier than trying to ewrite the CSV file the client gave me.

As you can see from the attached file (what I exported from HS after adding just one product and one category), the only similarity between the 2 files is that they're both CSV. From there, they are as different in structure as night and day. The HS one doesn't even have column headings. It was not at all what I expected to see after reading the documentation.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 9 months ago #141387

Hi,

The HikaShop CSV do have column headings and they look quite similar to me. Are you sure that your CSV reader is able to open CSVs with semi colons properly ? How about you change the CSV separator to comma in the configuration and try again ?

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

  • Posts: 279
  • Thank you received: 1
10 years 9 months ago #141391

Cannot see where to do that.

I see no column headings in HS export file. Not in the sense of Excel column headings anyway. Maybe that great long string of names is considered column headings in cell A1.

Again, the structure is not even vaguely alike - I'm looking at both files in Excel - screenshots of what I see are attached.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 9 months ago #141394

You're not opening the CSV of HikaShop properly in Excel. Either you import it via the import menu of Excel and specify to excel to use semi colons as separator, or you change the csv separator option of the hikashop configuration to commas. Then, it will display fine.

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

  • Posts: 279
  • Thank you received: 1
10 years 9 months ago #141489

Even using the Import function from the Data tab makes no difference. I see EXACTLY the same as before. I'm sure the import routine works, it just isn't going to for me. Don't know why, and I have a client who wants me to get going.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 9 months ago #141515

Yes, you'll get exactly the same result with that button if you don't change the option of the configuration of HikaShop as I have explained to you previously.

And again, why not use the import tool of Excel to open your CSV as I also explained ? It's simple to do really... Go in the menu File>Import of Excel, select your CSV file, and choose the separator (semicolon or comma) and import and it will display fine.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum