Audio Player for digital files in shopping cart

  • Posts: 5
  • Thank you received: 0
9 years 1 month ago #241322

Re: Audio player on downloads page for digital files

My clients are paying for audio files and PDF files. However, they cannot simply download the files and play them on their phones and tablets (no player).

I tried to create a php file with a bootstrap player and links. Then, I uploaded it as a digital download. Sadly, it just downloads the php and does not open it up as a web page.

Is there a way to create a module or similar to have those files play from the customer download area? I want to be sure the correct audio files show up based upon the product ordered.

I don't think you need the file that I created; but I'm attaching it anyway.

File Attachment:

File Name: smile-again.txt
File Size:31 KB



Thank you in advance,
Mary

Attachments:

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

  • Posts: 84079
  • Thank you received: 13629
  • MODERATOR
9 years 1 month ago #241331

Hi,

I don't see what's the problem with the way it is now.
When the customer will click on the download link, the file will be downloaded by his browser, and it will ask the customer if he wants to open the file and with which software. If he chooses his media player (or his PDF viewer), the music will play (or the PDF will be displayed). That will work by default on any smartphone or computer.
On top of that, the file will be on his computer and he will be able to copy it to another device, and play it again easily without having to download it again.
So it looks much practical to me than having a player on your website to play the file from your website.

But well, to answer your question, there is no integrated player in HikaShop file product files. If you want to add one, you'll have to edit the file "downloads" of the view "user" via the menu Display>Views and modify the code displaying the link for the download of the file, to display instead your player or a link to it.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum