Page 1 of 1

Video upload

Posted: 29 Nov 2015, 17:18
by Sad
Thanks.

Re: Video upload

Posted: 30 Nov 2015, 10:02
by aimeos
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 ... w_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?

Re: Video upload

Posted: 04 Dec 2015, 12:04
by Sad
Thanks for a quick help.

Re: Video upload

Posted: 04 Dec 2015, 13:18
by aimeos
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.