Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
7133 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
oct 23
4028
0
may 16
4753
2
may 24
5618
1
jul 23
2105
1
abr 23
7438