csv import of (public) download files
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
csv import of (public) download files
Hi,
we have to add additional pdf documents (datasheets, specifications etc.) to our products.
These documents should be available for download without any purchase / order.
We are using "Product" > "Media" Type: "Download" - correct, or any other / better options?
As we receive product data from another system than the pdf docs:
Is it possible to create 2 separate csv import files?
thanks
we have to add additional pdf documents (datasheets, specifications etc.) to our products.
These documents should be available for download without any purchase / order.
We are using "Product" > "Media" Type: "Download" - correct, or any other / better options?
As we receive product data from another system than the pdf docs:
Is it possible to create 2 separate csv import files?
- daily: csv with product data (price, stock, desc. etc.)
- weekly: csv with URLs to download-files
thanks
Re: csv import of (public) download files
That's correct.
You can use:
Code: Select all
controller/common/product/import/csv/processor/media/listtypes = ['default']
Code: Select all
controller/common/product/import/csv/processor/media/listtypes = ['download']
https://github.com/aimeos/ai-controller ... hp#L54-L73
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 import of (public) download files
I updated my shop.php as follows, but download-medias (pdf files etc.) are removed after each csv-import:
could you please give an example how the csv mapping (in shop.php) has to look like for the default media (image picture), and download media (download file) imports?
Code: Select all
'controller' => [
'common' => [
'product' => [
'import' => [
'csv' => [
'processor' => [
'media' => [
'listtypes' => array( 'default' ),
],
],
],
],
],
....
could you please give an example how the csv mapping (in shop.php) has to look like for the default media (image picture), and download media (download file) imports?
Re: csv import of (public) download files
Either the array_flip() is too much here:
https://github.com/aimeos/ai-controller ... rd.php#L90
or the configuration value must be:
https://github.com/aimeos/ai-controller ... rd.php#L90
or the configuration value must be:
Code: Select all
['default' => 'default']
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