on 2018 Feb 26 1:07 PM
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?
Request clarification before answering.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
code is not localised, rather name or something, INSERT_UPDATE MyShirt; code[unique=true];colors(code, name[lang=$lang]).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.