CSV product import: Downloads
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
CSV product import: Downloads
Hello,
Is there a possibility to attach download files to a product when importing a CSV?
For images I can use 'media.url' and the relative path to it.
I didn't find anything similar for download files...
Grettings
Moritz
Is there a possibility to attach download files to a product when importing a CSV?
For images I can use 'media.url' and the relative path to it.
I didn't find anything similar for download files...
Grettings
Moritz
PHP 8.2.24
Typo3 v12.4.23 LTS
Aimeos web shop 24.10.2
Typo3 v12.4.23 LTS
Aimeos web shop 24.10.2
Re: CSV product import: Downloads
It's possible but requires a bit more understanding how Aimeos saves downloads internally. They are "hidden" attributes of type "download" with the relative URL inside the secure file system (usually ./uploads/tx_aimeos/.secure/).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: CSV product import: Downloads
So I should store the download file into my secure upload folder?
Is there any rule that I have to consider? Like the naming or folder structure?
Can you tell me which of the following values should be filled for the import and where do I place the relativ download path?
Is there any rule that I have to consider? Like the naming or folder structure?
Can you tell me which of the following values should be filled for the import and where do I place the relativ download path?
Code: Select all
array(
'attribute' => array(
0 => 'attribute.typeid',
1 => 'attribute.type',
2 => 'attribute.code',
3 => 'attribute.label',
4 => 'attribute.position',
5 => 'attribute.status',
),
)
PHP 8.2.24
Typo3 v12.4.23 LTS
Aimeos web shop 24.10.2
Typo3 v12.4.23 LTS
Aimeos web shop 24.10.2
Re: CSV product import: Downloads
There's not required nameing for the secure folder. We store md5 hashes like "a0...f9.jpg" so we are sure there's no potential security issue.
You should use:
- attribute.type = "download"
- attribute.code = "a0...f9.jpg"
- attribute.label = "myfile.jpg"
- attribute.position = 0
- attribute.status = 1
You should use:
- attribute.type = "download"
- attribute.code = "a0...f9.jpg"
- attribute.label = "myfile.jpg"
- attribute.position = 0
- attribute.status = 1
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: CSV product import: Downloads
That doesn't work because the download is stored as normal attribute instead of hidden attribute.
How can I import it as hidden attribute?
How can I import it as hidden attribute?
PHP 8.2.24
Typo3 v12.4.23 LTS
Aimeos web shop 24.10.2
Typo3 v12.4.23 LTS
Aimeos web shop 24.10.2
Re: CSV product import: Downloads
Add "product.list.type" => hidden to your mapping and your data:
https://aimeos.org/docs/Developers/Cont ... #Attribute
https://aimeos.org/docs/Developers/Cont ... #Attribute
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: CSV product import: Downloads
Perfect, that works.
Thank you!
Thank you!
PHP 8.2.24
Typo3 v12.4.23 LTS
Aimeos web shop 24.10.2
Typo3 v12.4.23 LTS
Aimeos web shop 24.10.2