Issue with the deletion of variants

  • Posts: 46
  • Thank you received: 2
11 years 6 months ago #75401

When variants are deleted correctly using the below method

1 Delete all the variants of the product on the listing of variants that you can access via the button "manage variants" on the product edition screen.
2. Delete the characteristics of the product.
3. Save the product.
4. Add the characteristics again.
5. The system will regenerate all the variants automatically and you should be able to see the dropdowns properly on the front end.

and the reimported with the product code correct code this is not working in that

the product ends up as:
Product Code Color Size ID
BE1080_3078_3088 Black S 4688949

when the file was run in as:

product_id,product_parent_id,product_code,product_type,Size,Colour
4688949,BE1080,831796,variant,S,Black

The product code was working fine now it is not updating to the correct one.
This is major issue as we are using the product code field throughout our site to update 25,000 stock levels.

I am running the latest version of hikashop 2.0
The same thing is happening with version 1.6

I have attached a screenshot of what is happening:
along with the csv as how it should be.





File Attachment:

File Name: bellatop.csv
File Size:6 KB

Attachments:
Last edit: 11 years 6 months ago by mair.

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

  • Posts: 81677
  • Thank you received: 13102
  • MODERATOR
11 years 6 months ago #75702

Hi,

You also need to have a line for the main product in your CSV otherwise the system is not able to import the data of the variants properly.

The following user(s) said Thank You: mair

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

  • Posts: 46
  • Thank you received: 2
11 years 6 months ago #75888

Thanks Nicolas surely this needs to be put in the documentation?

Last edit: 11 years 6 months ago by mair.

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

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

Hi,

Finally, you can also insert variants of products. You will have to specify in the product_parent_id column the product_code of the main product which must be inserted before the variants in the file. You will also have to have column names matching the characteristics in the store.

For example, suppose that you have a product with 1 characteristic being the size and two variants:

product_code,product_parent_id,size

main_product,,big

first_variant,main_product,big

second_variant,main_product,small


This is an extract of the documentation explaining that you have to specify the main product before the variants.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum