import characteristics

  • Posts: 149
  • Thank you received: 6
11 years 11 months ago #78331

I have product with 2 characteristics (size from 38 to 52 and color (green, blue, black, white)

I would like to import automatically these characteristics by CSV but not all for all products in order not to load too much database. By exemple, I have one product on size 38 and 40 only and with only color black)
I tried to import file with only these specifications but it created automatically all the variants
Please could help me. Thanks in advance

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

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

Hi,

Do you tried to set your csv as explain in the tutorial ?
www.hikashop.com/en/support/documentatio...shop-import.html#csv

Something like:

product_code,product_parent_id,size,color

main_product,,38,green
first_variant,main_product,42,white
second_variant,main_product,41,blue


Doens't work ? Else in the variant listing of a product, you can check and delete the variants, they will be removed from the database.

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

  • Posts: 149
  • Thank you received: 6
11 years 11 months ago #78435

Great and Bravo !!! It works fine !
Thanks again

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

  • Posts: 149
  • Thank you received: 6
11 years 11 months ago #79503

Hello it's me again,

Your process is working properly, but the variant of the first line is not taking into account. This means that at the product page when it's loaded the variant by default (the first line) it's displayed "item unvailable for these option" In sample below, variant : Blanc and 40 are displayed in product backend as default but when I check the variants list they don't exist. Thanks again for your help

product_code product_parent_id Bonnet Coloris Taille product_manufacturer_id product_type product_quantity product_published price_value categories
3999 0 Blanc 40 ChantelleFR main 1 1 34 BASTILLE
3999V2Cha 3999 Blanc 42 ChantelleFR variant 1 1 34
3999V3Cha 3999 Blanc 44 ChantelleFR variant 1 1 34

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

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

Hi,

Yes I forgot one thing, for the main product (the first) the values are for the default value. You need to create this variant, like:

product_code,product_parent_id,size,color

main_product,,38,green
first_variant,main_product,42,white
second_variant,main_product,41,blue
third_variant,main_product,38,green

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

  • Posts: 149
  • Thank you received: 6
11 years 11 months ago #79606

Does it means that for the main product default values are fictitious ? In your sample : 38 and green ?
That's it

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #79699

Hi,

The default values are the pre-selected values.
When you edit the product in the backend, the variants options dropdown contains a value, this is the default value, the pre-selected value.

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.

Time to create page: 0.076 seconds
Powered by Kunena Forum