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

#   Import Variants

##

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

Less More

- Posts: 23
- Thank you received: 0
-
-

10 years 1 month ago [\#254386](#254386) by [riro73](/forum/user/36432-riro73 "View riro73's Profile")  *[Import Variants](/forum/37-import-export-csv-xls/887302-import-variants#254386 "I'm trying import a csv file with only variant, but ? dont'see them in my site. In the attached file you can see the products I'm trying to import. Is it correct the file?")* was created by *[riro73](/forum/user/36432-riro73 "View riro73's Profile")*

I'm trying import a csv file with only variant, but ? dont'see them in my site.
In the attached file you can see the products I'm trying to import.
Is it correct the file?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODczMDItaW1wb3J0LXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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: 86593
- Thank you received: 14334
-
-

10 years 1 month ago [\#254412](#254412) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import Variants](/forum/37-import-export-csv-xls/887302-import-variants#254412 "I'm trying import a csv file with only variant, but ? dont'see them in my site. In the attached file you can see the products I'm trying to import. Is it correct the file?")*

Hi,

The CSV has to also contain a line with the main product so that the variant rows reference that main product's code in the product_parent_id column.
If you create a product with variants via the interface and then export it with the export button of the products listing, you'll get a CSV which you can use as an example and you'll see that it also contains a row for that product and then a row for each variant.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODczMDItaW1wb3J0LXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) 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.065 seconds

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