How to configure and adapt Aimeos based shops as developer
Forum rules: Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#2124 by Sad
29 Nov 2015, 17:18
Thanks.
Last edited by Sad on 23 Feb 2016, 18:52, edited 1 time in total.
#2130 by aimeos
30 Nov 2015, 10:02
Sad wrote:I' d like to add a video as a digital product, also to add a video in catalog details component.


Adding a new subpart in the catalog detail component is relatively simple:
https://aimeos.org/docs/Developers/Html_frontend/Create_new_subparts

The media items are already available and can be retrieved in the view via
Code: Select all$this->detailProductItem->getRefItems( 'media', <type>, <list type> )

Should the video be available for download after purchasing it?
#2152 by Sad
04 Dec 2015, 12:04
Thanks for a quick help.
Last edited by Sad on 23 Feb 2016, 18:53, edited 1 time in total.
#2153 by aimeos
04 Dec 2015, 13:18
Sad wrote:Yes the video should be downloadable after it was purchased.


In that case, you have to place to video on your web space and add an attribute of type "Download" to the product, which contains the URL to the video in the "Code" field. The list type in the left panel (Associated attributes) must be "Hidden".

Sad wrote:But i dont understand, in the documentation it was writen that media can be photo and any kind of multimedia files... but for now as i can see, it is possible just to upload images. I need to customise for other types of media files?


Yes, you can add all kind of media files to products. Files other than images will be available in the (public) "Download" section of the product detail view (depending on the list type). If you want something else, you might need to add a special HTML subpart.