to play an MP3 when the customer clicks on a product?

  • Posts: 39
  • Thank you received: 3
  • Hikashop Business
3 months 3 weeks ago #358074

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 5.0
-- PHP version -- : 8.2

Hello everyone,

Is it possible to play an MP3 when the customer clicks on a product?
It's about a fan mug of an artist who has 9 different mugs and therefore 9 different mp3s
Is that possible?

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

  • Posts: 81567
  • Thank you received: 13075
  • MODERATOR
3 months 3 weeks ago #358075

Hi,

You mean on the listing of products page ?
So it would be played during the redirection to the product page ?
Or are you talking about playing the MP3 on the product page each time the user clicks somewhere on the page ?
Or only when clicking on the add to cart button ?

While there is no ready made solution to do this by default, it sure would be possible for a developer to add some custom code, via a view override or a plugin to do that. What to do exactly depends on where and when it should happen.

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

  • Posts: 39
  • Thank you received: 3
  • Hikashop Business
3 months 3 weeks ago #358081

hello,

it should happen when the user looks at the product, I have the categories, then he clicks on the product in the various categories (I'll call them Fan Tass1 1) he then sees the thumbnails and that's where the song should be teased.
The same for Fan Cup 2 with the song
I hope I have printed myself out properly

Thank you
Andy

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

  • Posts: 81567
  • Thank you received: 13075
  • MODERATOR
3 months 3 weeks ago #358083

Hi,

Ok, so you mean it should auto play the mp3 when the user arrives on the product page.
Most browsers will block the auto play of audio when the page is loaded. It will only allow it if the user has interacted with the page (click, scroll, key press, etc):
developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide
So I'm not sure what you want to do is possible at all.

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

  • Posts: 39
  • Thank you received: 3
  • Hikashop Business
3 months 3 weeks ago #358113

Hello,

it doesn't have to be autoplay, it would be enough if there was a play button where the customer can then press it.

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

  • Posts: 81567
  • Thank you received: 13075
  • MODERATOR
3 months 3 weeks ago #358118

Hi,

So isn't what the plugin I was talking about does ?
Or could you provide more details on what you wish this plugin would do which it doesn't at the moment ?

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

Time to create page: 0.063 seconds
Powered by Kunena Forum