[Skip to main content](#vessel-content)

#   Issue with the deletion of variants

##

- **[mair](/forum/user/9742-mair "View mair's Profile")**
- [![mair's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9742-mair "View mair's Profile") Topic Author
- [ Offline](/forum/user/9742-mair)

Less More

- Posts: 46
- Thank you received: 2
-
- [](http://www.workwearandsports.co.uk/)
-

14 years 4 days ago -  14 years 4 days ago [\#75401](#75401) by [mair](/forum/user/9742-mair "View mair's Profile")  *[Issue with the deletion of variants](/forum/3-bug-report/75401-issue-with-the-deletion-of-variants#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 &quot;manage variants&quot; 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&#95;3078&#95;3088 Black S 4688949  when the file was run in as:  product&#95;id,product&#95;parent&#95;id,product&#95;code,product&#95;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.")* was created by *[mair](/forum/user/9742-mair "View mair's Profile")*

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.

[ ![forhika.jpg](/forum/attachment/6808) ](/forum/attachment/6808 "forhika.jpg")

*This attachment is hidden for guests.
Please log in or register to see it.*

---

[ Workwear Suppliers in the UK](http://www.workwearandsports.co.uk)

- [ ![forhika.jpg](/forum/attachment/6808) ](/forum/attachment/6808 "forhika.jpg") [ ](/forum/attachment/6808?download=1 "forhika.jpg")

Last edit: 14 years 4 days ago by [mair](/forum/user/9742-mair "View mair's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NTQwMS1pc3N1ZS13aXRoLXRoZS1kZWxldGlvbi1vZi12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 2 days ago [\#75702](#75702) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Issue with the deletion of variants](/forum/3-bug-report/75401-issue-with-the-deletion-of-variants#75702 "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 &quot;manage variants&quot; 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&#95;3078&#95;3088 Black S 4688949  when the file was run in as:  product&#95;id,product&#95;parent&#95;id,product&#95;code,product&#95;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.")*

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](/forum/user/9742-mair "View mair's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NTQwMS1pc3N1ZS13aXRoLXRoZS1kZWxldGlvbi1vZi12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mair](/forum/user/9742-mair "View mair's Profile")**
- [![mair's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9742-mair "View mair's Profile") Topic Author
- [ Offline](/forum/user/9742-mair)

Less More

- Posts: 46
- Thank you received: 2
-
- [](http://www.workwearandsports.co.uk/)
-

14 years 2 days ago -  14 years 2 days ago [\#75888](#75888) by [mair](/forum/user/9742-mair "View mair's Profile")  Replied by *[mair](/forum/user/9742-mair "View mair's Profile")* on topic *[Issue with the deletion of variants](/forum/3-bug-report/75401-issue-with-the-deletion-of-variants#75888 "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 &quot;manage variants&quot; 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&#95;3078&#95;3088 Black S 4688949  when the file was run in as:  product&#95;id,product&#95;parent&#95;id,product&#95;code,product&#95;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.")*

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

---

[ Workwear Suppliers in the UK](http://www.workwearandsports.co.uk)

Last edit: 14 years 2 days ago by [mair](/forum/user/9742-mair "View mair's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NTQwMS1pc3N1ZS13aXRoLXRoZS1kZWxldGlvbi1vZi12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 1 day ago [\#76072](#76072) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Issue with the deletion of variants](/forum/3-bug-report/75401-issue-with-the-deletion-of-variants#76072 "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 &quot;manage variants&quot; 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&#95;3078&#95;3088 Black S 4688949  when the file was run in as:  product&#95;id,product&#95;parent&#95;id,product&#95;code,product&#95;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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NTQwMS1pc3N1ZS13aXRoLXRoZS1kZWxldGlvbi1vZi12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
