Product downloads section not working

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!
michal.fehér
Posts: 44
Joined: 05 Feb 2018, 09:57

Product downloads section not working

Post by michal.fehér » 31 Jul 2018, 08:37

Hi. I think there is a bug in adding files to product.
When I upload a file from admin, it gets stored to product_list as hidden attribute.

In body-standard.php you call it this way
$this->detailProductItem->getRefItems( 'media', null, 'download' )
which returns an empty array.

And BTW, how can I remove uploaded file? Or add more than 1 file?

Thanks.

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

Re: Product downloads section not working

Post by aimeos » 01 Aug 2018, 10:09

You mix up two things:
- Public file downloads must be added in the "Images" tab with type "download"
- Files that are delivered to the customers once they bought the product must be added in the "Download" tab
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

michal.fehér
Posts: 44
Joined: 05 Feb 2018, 09:57

Re: Product downloads section not working

Post by michal.fehér » 01 Aug 2018, 12:00

OK, now I see it. not the best naming then though.

One more question. why previews are only working with images? it's a broken image when I upload PDF or doc.

<img class="media-image" src="http://damito.test/packages/aimeos/shop ... cument.png" alt="2018.05.18_CReg_ziadost.docx">
Attachments
Snip20180801_8.png
Snip20180801_8.png (28.13 KiB) Viewed 1791 times

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

Re: Product downloads section not working

Post by aimeos » 01 Aug 2018, 13:41

What naming for files that are sold would you suggest?

There aren't icons for all mime types available (but application/pdf.png is). You should add icons for the mime types you are using and which are missing to the directory.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply