- Posts: 156
- Thank you received: 0
Import CSV and ITEM with VARIANT
8 years 6 months ago #289679
by SuX
Import CSV and ITEM with VARIANT was created by SuX
-- 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
-- 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 or Create an account to join the conversation.
8 years 6 months ago #289716
by nicolas
Replied by nicolas on topic Import CSV and ITEM with VARIANT
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.
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 or Create an account to join the conversation.
8 years 6 months ago #289739
by SuX
As you can see from the attachment, in the first colun I have PRODUCT and MODEL
PRODUCT means product and MODEL means variants.
These information are all in the first column named record_type.
How can I import MODEL and its VARIANTS
Replied by SuX on topic Import CSV and ITEM with VARIANT
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.
These information are all in the first column named record_type.
How can I import MODEL and its VARIANTS
Please Log in or Create an account to join the conversation.
8 years 6 months ago #289740
by nicolas
Replied by nicolas on topic Import CSV and ITEM with VARIANT
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.
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 or Create an account to join the conversation.
Less
More
- Posts: 32
- Thank you received: 2
8 years 6 months ago #289806
by PortobelloDigital
Replied by PortobelloDigital on topic Import CSV and ITEM with VARIANT
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"
"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 or Create an account to join the conversation.
8 years 6 months ago #289810
by nicolas
Replied by nicolas on topic Import CSV and ITEM with VARIANT
Hi,
The product_type column is not necessary if you have the product_parent_id column filled.
The product_type column is not necessary if you have the product_parent_id column filled.
Please Log in or Create an account to join the conversation.
Time to create page: 0.171 seconds