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

#   Import CSV and ITEM with VARIANT

##

- **[SuX](/forum/user/39023-sux "View SuX's Profile")**
- [![SuX's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39023.jpg)](/forum/user/39023-sux "View SuX's Profile") Topic Author
- [ Offline](/forum/user/39023-sux)

Less More

- Posts: 156
- Thank you received: 0
-
-

8 years 8 months ago [\#289679](#289679) by [SuX](/forum/user/39023-sux "View SuX's Profile")  *[Import CSV and ITEM with VARIANT](/forum/37-import-export-csv-xls/894131-import-csv-and-item-with-variant#289679 "-- HikaShop version -- : 3.3.2 -- Joomla version -- : 3.8.6 -- PHP version -- : 5.6  In my CSV i have the following column:  Column: RECORD&#95;TYPE  Such column include a row PRODUCT and a row MODEL  PRODUCT means main product and MODEL as variants (colours)  How it is possibile to import the right informations using just one column, as in this case. My aim is change as little as possible a csv that has thousands of items")* was created by *[SuX](/forum/user/39023-sux "View SuX's Profile")*

-- HikaShop version -- : 3.3.2
-- Joomla version -- : 3.8.6
-- PHP version -- : 5.6

In my CSV i have the following column:

Column:
**RECORD\_TYPE**

Such column include a row **PRODUCT** and a row **MODEL**

PRODUCT means main product and MODEL as variants (colours)

How it is possibile to import the right informations using just one column, as in this case. My aim is change as little as possible a csv that has thousands of items

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTQxMzEtaW1wb3J0LWNzdi1hbmQtaXRlbS13aXRoLXZhcmlhbnQ/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
-
-

8 years 8 months ago [\#289716](#289716) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import CSV and ITEM with VARIANT](/forum/37-import-export-csv-xls/894131-import-csv-and-item-with-variant#289716 "-- HikaShop version -- : 3.3.2 -- Joomla version -- : 3.8.6 -- PHP version -- : 5.6  In my CSV i have the following column:  Column: RECORD&#95;TYPE  Such column include a row PRODUCT and a row MODEL  PRODUCT means main product and MODEL as variants (colours)  How it is possibile to import the right informations using just one column, as in this case. My aim is change as little as possible a csv that has thousands of items")*

Hi,

I don't understand your question.
What do you mean by "import using just one column" ? You already use just one column, the "RECORD_TYPE" column.
Please provide more precise information.

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

- **[SuX](/forum/user/39023-sux "View SuX's Profile")**
- [![SuX's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39023.jpg)](/forum/user/39023-sux "View SuX's Profile") Topic Author
- [ Offline](/forum/user/39023-sux)

Less More

- Posts: 156
- Thank you received: 0
-
-

8 years 8 months ago [\#289739](#289739) by [SuX](/forum/user/39023-sux "View SuX's Profile")  Replied by *[SuX](/forum/user/39023-sux "View SuX's Profile")* on topic *[Import CSV and ITEM with VARIANT](/forum/37-import-export-csv-xls/894131-import-csv-and-item-with-variant#289739 "-- HikaShop version -- : 3.3.2 -- Joomla version -- : 3.8.6 -- PHP version -- : 5.6  In my CSV i have the following column:  Column: RECORD&#95;TYPE  Such column include a row PRODUCT and a row MODEL  PRODUCT means main product and MODEL as variants (colours)  How it is possibile to import the right informations using just one column, as in this case. My aim is change as little as possible a csv that has thousands of items")*

> nicolas wrote: Hi,
>
> I don't understand your question.
> What do you mean by "import using just one column" ? You already use just one column, the "RECORD\_TYPE" column.
> Please provide more precise information.

As you can see from the attachment, in the first colun I have PRODUCT and MODEL
PRODUCT means product and MODEL means variants.

[ ![hika.jpg](/forum/attachment/43009) ](/forum/attachment/43009 "hika.jpg")

These information are all in the first column named record_type.

How can I import MODEL and its VARIANTS

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTQxMzEtaW1wb3J0LWNzdi1hbmQtaXRlbS13aXRoLXZhcmlhbnQ/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
-
-

8 years 8 months ago [\#289740](#289740) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import CSV and ITEM with VARIANT](/forum/37-import-export-csv-xls/894131-import-csv-and-item-with-variant#289740 "-- HikaShop version -- : 3.3.2 -- Joomla version -- : 3.8.6 -- PHP version -- : 5.6  In my CSV i have the following column:  Column: RECORD&#95;TYPE  Such column include a row PRODUCT and a row MODEL  PRODUCT means main product and MODEL as variants (colours)  How it is possibile to import the right informations using just one column, as in this case. My aim is change as little as possible a csv that has thousands of items")*

Hi,

If you want to import variants in your CSV, you need to have:
- a column for each characteristic (color, size, etc)
- in the main product row, you need to have the default value for each characteristic
- in each variant row, you need to have the value for each characteristic corresponding to each variant
- a column for the product_parent_id
- in each variant row, you need to have the product_code (or product_id) of the main product in the product_parent_id column

There is no need to have a record_type type of column.

It would be quite complex to change the way the import of the variants works to be able to work differently.

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

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

Less More

- Posts: 32
- Thank you received: 2
-
-

8 years 8 months ago [\#289806](#289806) by [PortobelloDigital](/forum/user/13368-portobellodigital "View PortobelloDigital's Profile")  Replied by *[PortobelloDigital](/forum/user/13368-portobellodigital "View PortobelloDigital's Profile")* on topic *[Import CSV and ITEM with VARIANT](/forum/37-import-export-csv-xls/894131-import-csv-and-item-with-variant#289806 "-- HikaShop version -- : 3.3.2 -- Joomla version -- : 3.8.6 -- PHP version -- : 5.6  In my CSV i have the following column:  Column: RECORD&#95;TYPE  Such column include a row PRODUCT and a row MODEL  PRODUCT means main product and MODEL as variants (colours)  How it is possibile to import the right informations using just one column, as in this case. My aim is change as little as possible a csv that has thousands of items")*

I got something similar, i added a column "product_type" and for each row a value of :
"main" for product and "variant" for variants

@nicolas
is it required or product_parent_id is enough ?

@SuX
So column "record_type" = "product_type" and "PRODUCT" = "main" and "MODEL" = variant"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTQxMzEtaW1wb3J0LWNzdi1hbmQtaXRlbS13aXRoLXZhcmlhbnQ/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
-
-

8 years 8 months ago [\#289810](#289810) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import CSV and ITEM with VARIANT](/forum/37-import-export-csv-xls/894131-import-csv-and-item-with-variant#289810 "-- HikaShop version -- : 3.3.2 -- Joomla version -- : 3.8.6 -- PHP version -- : 5.6  In my CSV i have the following column:  Column: RECORD&#95;TYPE  Such column include a row PRODUCT and a row MODEL  PRODUCT means main product and MODEL as variants (colours)  How it is possibile to import the right informations using just one column, as in this case. My aim is change as little as possible a csv that has thousands of items")*

Hi,

The product_type column is not necessary if you have the product_parent_id column filled.

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

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