-- 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?
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.
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
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.
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 ?