Import variant data edit
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
Import variant data edit
Hello,
We are trying to import product data with variants. And we followed the way which mentioned on aimeos documentations. It is working very nice as well.
But, we need to do some edit on importing stuff, which will make our work more easy and simple.
As mentioned into documentation, If we need to add multiple variant for selections product, then we need to create new column for every variant products. Based on that if we have to create 50-60 columns if we have multiple variant products.
I have attached sample CSV file here. In that if you see variants are starts from 272, 273 column number.
can we assign parent product to child product(like define selection product code with article product) instead of parent to child products(define article product codes to select product as array )?
or
Can we add all variants in comma separated way and handle it from product's Csv processor file
Thanks in advance.
We are trying to import product data with variants. And we followed the way which mentioned on aimeos documentations. It is working very nice as well.
But, we need to do some edit on importing stuff, which will make our work more easy and simple.
As mentioned into documentation, If we need to add multiple variant for selections product, then we need to create new column for every variant products. Based on that if we have to create 50-60 columns if we have multiple variant products.
I have attached sample CSV file here. In that if you see variants are starts from 272, 273 column number.
can we assign parent product to child product(like define selection product code with article product) instead of parent to child products(define article product codes to select product as array )?
or
Can we add all variants in comma separated way and handle it from product's Csv processor file
Thanks in advance.
Re: Import variant data edit
You can already add several variant product codes to one field using a newline as separator. The example file contains an example for that now: https://aimeos.org/docs/latest/cronjobs ... est-import
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
Re: Import variant data edit
Aha, Great thanks. Is this new line character applied for all other fields, like for attributes, texts and media?
Thanks in advance
Thanks in advance
Re: Import variant data edit
Yes, it works for many columns. You can check which ones in the code:
https://github.com/aimeos/ai-controller ... /Processor
For example:
- https://github.com/aimeos/ai-controller ... d.php#L117
- https://github.com/aimeos/ai-controller ... d.php#L140
https://github.com/aimeos/ai-controller ... /Processor
For example:
- https://github.com/aimeos/ai-controller ... d.php#L117
- https://github.com/aimeos/ai-controller ... d.php#L140
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
Re: Import variant data edit
Hello, Thanks for the help. It is good now.
Now, we are facing new issue while importing. Like we are adding products with attributes, properties, text, media and catalog details. In that, if attributes are not added into admin then it is creating new attributes into admin as well.
But, We want to create attributes along with text too. Right now, It is creating attributes with type, code and label only. But, we need to add english and arabic text values as well like we are doing for product texts.
How do we parse it, and handle into csv file?
Thanks
Now, we are facing new issue while importing. Like we are adding products with attributes, properties, text, media and catalog details. In that, if attributes are not added into admin then it is creating new attributes into admin as well.
But, We want to create attributes along with text too. Right now, It is creating attributes with type, code and label only. But, we need to add english and arabic text values as well like we are doing for product texts.
How do we parse it, and handle into csv file?
Thanks
Re: Import variant data edit
Use the attribute CSV import to add the missing information:
https://github.com/aimeos/ai-controller ... andard.php
https://github.com/aimeos/ai-controller ... andard.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star