cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Importing impex for localized collection of string

Former Member
0 Kudos
1,911

Hi,I have a collection like this:

and an itemtype using this :

So what should be the proper ImpEx for inserting shirts in this itemtype:

$lang=en INSERT_UPDATE MyShirt;code[unique=true];colors(code[lang=$lang])

The above statement gives error.Where am I going wrong?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Greetings Rachit,

From your Impex I assume you wanted to upload collections of shirt's available color variations and merged:

setting single attribute translation:

 INSERT Product;code[unique=true];name[lang=en]; name[lang=de]
 ;myProduct1;myProduct1's localized name;lokalisierter Name von myProduct1

with setting pointer:

 INSERT Address;firstname;owner( Principal.uid )
 ;Hans;admin

but looked for this:

 INSERT_UPDATE myProduct;myAttribute[map-delimiter=|] 
 ;myKey->myValue|myKey2->myValue2;

To create that:

 $lang = en  INSERT_UPDATE MyShirt;code[unique=true];colors[map-delimiter=,][lang=$lang]
 ;Harry_potter_shirt;blue->blue,black->black,red->red;

If that is not what you intended to accomplish, please provide:

  • The content of error message.

  • The idea behind Impex.

  • The first line of data to be sent by Impex header.

Lecture on Impex headers:

https://help.hybris.com/6.0.0/hcd/1c8f5bebdc6e434782ff0cfdb0ca1847.html

Best Regards,

Former Member
0 Kudos

code is not localised, rather name or something, INSERT_UPDATE MyShirt; code[unique=true];colors(code, name[lang=$lang]).