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
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
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, give us a star
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',
),
)
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
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, give us a star
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?
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
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, give us a star
Re: CSV product import: Downloads
Perfect, that works.
Thank you!
Thank you!
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3