Import & Export problem with categories

  • Posts: 540
  • Thank you received: 49
11 years 3 months ago #117283

Hi try make imp\exp (csv) operation from J2.5 to J3 (last versions) all information transfer but categories structure not
-- url of the page with the problem -- : demo3.benefit.in.ua/
-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.1.5 Stable
-- PHP version -- : 5.3.6
-- Browser(s) name and version -- : Mozilla 22.0
-- Error-message(debug-mod must be tuned on) -- : was some errors like this column not exist but not make PrtScr (forget)

How to make export with saved categories structure?


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #117414

Hi,

When you export, thanks to check your csv file content.
The categories are at the top of the csv file, are there the good structure in the csv ?

If yes, so the problem can potentially come from the export, else from the import.
You can edit this csv file to set back the good structure.

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

  • Posts: 540
  • Thank you received: 49
11 years 3 months ago #117497

Xavier wrote: Hi,
When you export, thanks to check your csv file content.
The categories are at the top of the csv file, are there the good structure in the csv ?

can you show example? im not sure what right understand you


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #117614

Hi,

You can see the documentation about export/import here:
www.hikashop.com/support/support/documen...hikashop-import.html

The content you need to read is:

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.

Since version 1.4.1, 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

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

  • Posts: 540
  • Thank you received: 49
11 years 3 months ago #117726

parent_category - is empty in csv file for all products


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #117774

For products, it's normal to not have parent category, parent categories are only used for the categories.

To have the good tree you have to check if your categories have the good parent categories in the parent_category column.

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

  • Posts: 540
  • Thank you received: 49
11 years 3 months ago #117776

hi in categories i dont see tree (add my csv file in attach)


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Attachments:
Last edit: 11 years 3 months ago by master_b.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #117847

Your csv don't have the categories structure.
That's why when importing in back, the categories don't have parent/children.

Are you using the Export button in the toolbar of the product menu ?
The categories should be in that csv, before the products.

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

  • Posts: 540
  • Thank you received: 49
11 years 3 months ago #117894

Xavier wrote: Are you using the Export button in the toolbar of the product menu ?

yes, hika-products-export button


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #117977

I can't reproduce the problem on my end, the categories are well exported.

Thanks to try to export the categories via the mass actions.
Via the menu System > Mass action, create a new massaction with the data "Category" you don't need to select a trigger neither a filter. In the action select "exportCsv" and check the two fields "parent_category" and "category_name"

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

  • Posts: 540
  • Thank you received: 49
11 years 3 months ago #117987

Xavier wrote: Via the menu System > Mass action, create a new massaction with the data "Category" you don't need to select a trigger neither a filter. In the action select "exportCsv" and check the two fields "parent_category" and "category_name"

i dont have mass action in system on my main site, but have on demo site B)
if i try use same way (http://my_main_site/administrator/index.php?option=com_hikashop&ctrl=massaction i see warning:
Warning: include(/home/virtwww/site/http/administrator/components/com_hikashop/controllers/massaction.php): failed to open stream: No such file or directory in /home/virtwww/site/http/administrator/components/com_hikashop/hikashop.php on line 46 Warning: include(): Failed opening '/home/virtwww/site/http/administrator/components/com_hikashop/controllers/massaction.php' for inclusion (include_path='.:') in /home/virtwww/site/http/administrator/components/com_hikashop/hikashop.php on line 46 controller massaction not found


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Last edit: 11 years 3 months ago by master_b.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #118017

Thanks to try to re-install the HikaShop component over your current install.
With 2.2.0 the massaction must be present.

Do you have any class/controller override ?

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

  • Posts: 540
  • Thank you received: 49
11 years 3 months ago #118046

Xavier wrote: I can't reproduce the problem on my end, the categories are well exported.

Thanks to try to export the categories via the mass actions.
Via the menu System > Mass action, create a new massaction with the data "Category" you don't need to select a trigger neither a filter. In the action select "exportCsv" and check the two fields "parent_category" and "category_name"

re-install, now i see mass action option, "category_parent_is" its a same as "parent_category"? and what i must to do with new csv file?)


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Last edit: 11 years 3 months ago by master_b.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 3 months ago #118122

Yes, it's the same.

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

  • Posts: 540
  • Thank you received: 49
11 years 3 months ago #118984

next problem is that file encoding in utf8 and cyrillic symbols unreadable in exel. now i have 200+ position and can manual replace into categories for my demo site but if somebody have much more products its be a problem

upd. not all categories and sub was export with cyrillic names (not use any special symbols + */ etc)


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Last edit: 11 years 3 months ago by master_b.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 3 months ago #119054

Hi,

Excel should be compatible with UTF8. I don't think that such software does not handle this type of encoding.

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.

  • Posts: 540
  • Thank you received: 49
11 years 3 months ago #119088

i found next answer on forum:
file in UTF-8 should begin with a standard BOM signature 0xEF, 0xBB, 0xBF ( ru.wikipedia.org/wiki/UTF8 ). Without it, Excel does not recognize UTF-8.

or/and solution: open file in windows notepad, that save it in utf-8 (program should automatically detect the file encoding format ) and after that cyrillic be normal viewed in exel


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
The following user(s) said Thank You: Jerome

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

Time to create page: 0.097 seconds
Powered by Kunena Forum