Skip to Content
Menu
This question has been flagged
1 Reply
5987 Views

Hello,

We imported our product data already. But we have not imported the variants yet. How can we update the existintg products but creating variants? 

What I did:

I created  an  attribute :  "Attribute test: (I tried with  variant creation mode = Dynamically or Instant) with  2  values:  "Value 1" and "Value 2"

1/ Go to Export Variant > Export data (with internal ID, external ID, name)

2/ As the product does not have any variant, I created new lines in the  CSV /  Excel  file  with the following columns and values:

- Name = PRODUCTNAME

- product_template_attribute_value_ids =  Attribute test: Value 2

3/ To import: Product variant > Favorites > Import > Upload file

--> But when I upload I get this error message: 

No matching record found for name 'Attribute test: Value 2' in field 'Attribute Values' at row 2 ( PRODUCTNAME )

Can you please help?  Thank you.

Avatar
Discard
Best Answer

Hello,

First, you can export the product you needed. So you will get the External ID of the product.

id
name
attribute_line_ids/attribute_id
attribute_line_ids/value_ids
__export__.product_template_41565_b5dbe71f
1 Application Body Fluid Clean-Up Spill Kit Refill 717
Type
S2,S3
Like the above table, "id" is the External Id of the product.

"name" is the Product name

"attribute_line_ids/attribute_id" is the Variant Type.

"attribute_line_ids/value_ids" is the Variant Values. If you have multiple values, then give them separated by a comma.

You can do this on the the product.template

Avatar
Discard
Related Posts Replies Views Activity
2
Oct 23
2757
0
May 16
3760
2
May 24
4772
1
Jul 23
984
1
Apr 23
6341