import attributes with languageid

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
akropivko
Posts: 36
Joined: 20 Jan 2021, 12:49

import attributes with languageid

Post by akropivko » 11 Jun 2021, 11:35

Hi!
Could you please advise is there any config option to import attributes for certain languages? I guess something like languageid.
I can set language id for text using text.languageid, for example
4 => 'text.languageid',
5 => 'text.type',
6 => 'text.content',

But I'd like to set the lang id for attributes also, something like:
37 => __languageid__
38 => 'attribute.type',
39 => 'attribute.code',

As a result I'd like to have it inside Texts tab:
Screenshot_30.jpg
Screenshot_30.jpg (28.98 KiB) Viewed 1552 times
Laravel 6.20.27
aimeos/aimeos-core 2020.10.24
PHP 7.4

User avatar
aimeos
Administrator
Posts: 7941
Joined: 01 Jan 1970, 00:00

Re: import attributes with languageid

Post by aimeos » 12 Jun 2021, 06:02

It's currently not possible to import attribute texts using the product CSV importer but it's possible with the attribute XML importer: [url]https://github.com/aimeos/ai-controller ... andard.php

The XML importer are not documented well at the moment but here are commented examples so you can create appropriate files easily:
Attachments
aimeos-xml.zip
(9.39 KiB) Downloaded 110 times
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply