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

#   Required fields for new product and variants impor

##

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

Less More

- Posts: 25
- Thank you received: 0
-
-

10 years 9 months ago [\#230536](#230536) by [MichaelGary](/forum/user/37413-michaelgary "View MichaelGary's Profile")  *[Required fields for new product and variants impor](/forum/37-import-export-csv-xls/882429-required-fields-for-new-product-and-variants-impor#230536 "-- HikaShop version -- : essential v2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.8  Hello  I need to use .csv to create new products and import them. I have existing characteristics and values that will be common to all products, however, each product and it's variants of those characteristics and values will have unique pricing.  How am I to build a new product in a .csv spread sheet to import it if I need to have “product&#95;parent&#95;id” “product&#95;id” “product&#95;code” in advance before I can import successfully?  I really don't want to copy a product and then export it to modify it and then re import it. If I had to do that I may as well create the products in Hikashop which is not optional because I have to many very complex products.  Thanks,  Mike")* was created by *[MichaelGary](/forum/user/37413-michaelgary "View MichaelGary's Profile")*

-- HikaShop version -- : essential v2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6.8

Hello

I need to use .csv to create new products and import them. I have existing characteristics and
values that will be common to all products, however, each product and it's variants of those characteristics and values will have unique pricing.

How am I to build a new product in a .csv spread sheet to import it if I need to have “product_parent_id” “product_id” “product_code” in advance before I can import successfully?

I really don't want to copy a product and then export it to modify it and then re import it. If I had to do that I may as well create the products in Hikashop which is not optional because I have to many very complex products.

Thanks,

Mike

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODI0MjktcmVxdWlyZWQtZmllbGRzLWZvci1uZXctcHJvZHVjdC1hbmQtdmFyaWFudHMtaW1wb3I/dG1wbD1tYXJrZG93bg==) 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 9 months ago [\#230540](#230540) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Required fields for new product and variants impor](/forum/37-import-export-csv-xls/882429-required-fields-for-new-product-and-variants-impor#230540 "-- HikaShop version -- : essential v2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.8  Hello  I need to use .csv to create new products and import them. I have existing characteristics and values that will be common to all products, however, each product and it's variants of those characteristics and values will have unique pricing.  How am I to build a new product in a .csv spread sheet to import it if I need to have “product&#95;parent&#95;id” “product&#95;id” “product&#95;code” in advance before I can import successfully?  I really don't want to copy a product and then export it to modify it and then re import it. If I had to do that I may as well create the products in Hikashop which is not optional because I have to many very complex products.  Thanks,  Mike")*

Hi,

The product_code is the SKU of your products/variants so you must have it already somewhere. The product_id column is not necessary and should be removed from the CSV. The product_parent_id can contain either the product_id of the main product or its product_code (SKU), so you have that information as well.
That way, you don't need to first export the products and reimport. You can directly import a CSV with the correct data.

The following user(s) said Thank You: [MichaelGary](/forum/user/37413-michaelgary "View MichaelGary's Profile")

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

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

Less More

- Posts: 25
- Thank you received: 0
-
-

10 years 9 months ago [\#232056](#232056) by [MichaelGary](/forum/user/37413-michaelgary "View MichaelGary's Profile")  Replied by *[MichaelGary](/forum/user/37413-michaelgary "View MichaelGary's Profile")* on topic *[Required fields for new product and variants impor](/forum/37-import-export-csv-xls/882429-required-fields-for-new-product-and-variants-impor#232056 "-- HikaShop version -- : essential v2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.8  Hello  I need to use .csv to create new products and import them. I have existing characteristics and values that will be common to all products, however, each product and it's variants of those characteristics and values will have unique pricing.  How am I to build a new product in a .csv spread sheet to import it if I need to have “product&#95;parent&#95;id” “product&#95;id” “product&#95;code” in advance before I can import successfully?  I really don't want to copy a product and then export it to modify it and then re import it. If I had to do that I may as well create the products in Hikashop which is not optional because I have to many very complex products.  Thanks,  Mike")*

Hello,

I have another .csv question. So as you can see on the attached screen shot of a .csv export that I have three products. My products all have a 3 digit ID number that is used for the SKU.

You can see that one product "478" on row 20 has several variants and also one option that has 4 variants also.

All of the related variant information for that product appears is on rows 23 through 36 and is bellow the products, however, there is
also other variant information for the same variants/product that appear above the products in rows 4 through 19. Why is this and what
is this?

Apparently, if I want to use those same variants on another product created from scratch in the .csv, I would have to use all variants in rows 4-19 and 23-36? how would I name them?

I don't understand how to name those same variants for other new products?

Thank you,.

- [ ![Export.png](/forum/attachment/29880) ](/forum/attachment/29880 "Export.png") [ ](/forum/attachment/29880?download=1 "Export.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODI0MjktcmVxdWlyZWQtZmllbGRzLWZvci1uZXctcHJvZHVjdC1hbmQtdmFyaWFudHMtaW1wb3I/dG1wbD1tYXJrZG93bg==) 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 9 months ago [\#232069](#232069) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Required fields for new product and variants impor](/forum/37-import-export-csv-xls/882429-required-fields-for-new-product-and-variants-impor#232069 "-- HikaShop version -- : essential v2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.6.8  Hello  I need to use .csv to create new products and import them. I have existing characteristics and values that will be common to all products, however, each product and it's variants of those characteristics and values will have unique pricing.  How am I to build a new product in a .csv spread sheet to import it if I need to have “product&#95;parent&#95;id” “product&#95;id” “product&#95;code” in advance before I can import successfully?  I really don't want to copy a product and then export it to modify it and then re import it. If I had to do that I may as well create the products in Hikashop which is not optional because I have to many very complex products.  Thanks,  Mike")*

Hi,

The rows from 4 to 19 are variants without link to a main product. They are invalid I think in your database so they appear wrong in the export.
As you say, the variants have to be after the main product row, and the product_parent_id column of the variant has to contain the product_code of the main product.

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

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