Launching an online movie and music store.

  • Posts: 19
  • Thank you received: 0
3 years 7 months ago #322820

-- HikaShop version -- : 4.3
-- Joomla version -- : 3.9.20
-- PHP version -- : 7.3

hi
I want to start a movie sales site and a music sales site. How do I add a video or audio player to the product list instead of an image?
Also on the product page, how can I add an additional player that plays a few seconds of the file as a preview?
thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13036
  • MODERATOR
3 years 7 months ago #322827

Hi,

You can use a mp3/video player joomla content plugin (you can find many of them on the JED: extensions.joomla.org/category/multimedia/multimedia-players/ ) in order to add your video/music to the products' description or a custom field of the table "product".
Then, you can edit the view file product / listing_img_title.php which is used on the listings by default (or another one if you use another layout) and add such code to process the tags where you want the player to appear:
echo JHtml::_('content.prepare', $this->row->xxx);
where xxx is to be replaced by product_description or the column name of your custom product field.
To check which view file to edit via the menu Display>Views, you can use the "Display view files" setting of the HikaShop configuration:
www.hikashop.com/support/documentation/1...-display.html#layout

The following user(s) said Thank You: mSnus

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum