Skip to main content

Product import with variants

More
8 years 7 months ago #287508 by kyratn
Hi,

I am not sure is this a bug or i am doing something wrong. We are looking to import products via csv improved and had some issues. So to see how it is working by default with hikashop import system we created csv file like this:
Code:
product_code,product_parent_id,color,categories main_product,,Black,148 first_variant,main_product,Black, second_variant,main_product,Black,

Everything imports fine but the issue is that both variants are preselected as default in back end product variant edition page. Also on front end product has no variants. So whats the issue?

Kind Regards

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

More
8 years 7 months ago #287510 by Jerome
Replied by Jerome on topic Product import with variants
Hello,

Both of your variants are using the same characteristic value ; so I'm afraid that your content is incorrect and the issue is logical.
Afterwards, you need to check that these characteristic values are correct and exist in your store ; please note that the case is important.

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.

More
8 years 7 months ago #287569 by kyratn
Replied by kyratn on topic Product import with variants
Hi Jerome,

I see your point and modified csv to look like this:
Code:
product_code,product_parent_id,color,categories main_product,,Black,148 first_variant,main_product,Black, second_variant,main_product,White,

It works fine. 2 Variants are added and preselected is Black.

But what if I need to import 3 variants which has same color with different sizes? How csv should look? Could you give example please?

As example I have BLACK dress in 3 sizes S, M, L

Kind Regards

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

More
8 years 7 months ago #287578 by kyratn
Replied by kyratn on topic Product import with variants
Update. So found what was giving issue.

The size variant was different. For customization purpose we had to use span attribute inside variant like this: "<span class="item_size">S</span>"

This did the job:
Code:
product_code,product_parent_id,color,size,categories main_product,,Black,<span class="item_size">S</span>,148 first_variant,main_product,Black,<span class="item_size">S</span>, second_variant,main_product,Black,<span class="item_size">M</span>,

So question. Could hikashop improve system and add attribute with unique class inside label for each variant? As for now each variant is inside label after input. And there is no way to apply css for variant which is after checked input. So extra class/attribute is needed.

Kind Regards

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

More
8 years 7 months ago #287573 by nicolas
It's the same principle:
Code:
product_code,product_parent_id,color,size,categories main_product,,Black,S,148 first_variant,main_product,Black,S, second_variant,main_product,White,S, third_variant,main_product,Black,M, fourth_variant,main_product,White,M, fifth_variant,main_product,Black,L, sixth_variant,main_product,White,L,

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

Time to create page: 0.224 seconds
Powered by Kunena Forum