Add Music Store Player to Modules eg. Latest Products in Shoppica 2

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeAdd Music Store Player to Modules eg. Latest Products in Shoppica 2

This topic has been marked as not a support question.

Hey

I am setting up an mp3 backing track web site using the Shoppica 2 theme and I’m struggling to get the music player extension into the latest.tpl file :(

I have manipulated the product.tpl to include the player there but really need it to appear in modules like latest, featured etc.

The script I need to insert is:

<?php foreach ($product_music2 as $product_music) { ?>

		<b><?php echo $product_music['artist']; ?> <br /><?php echo $product_music['name']; ?></b><br>
		<script type="text/javascript" src="player/audio-player.js"></script>
		<script type="text/javascript">
		AudioPlayer.setup("player/player.swf", {
		width: 250,
		initialvolume: 100
		});
		</script>
		<p id="audioplayer_<?php echo $product_music['priority']; ?>">Music Player</p>
		<script type="text/javascript">
		AudioPlayer.embed("audioplayer_<?php echo $product_music['priority']; ?>", {soundFile: "music_dir/<?php echo $product_music['filename']; ?>",
		artists: "<?php echo $product_music['artist']; ?>",
		titles: "<?php echo $product_music['name']; ?>"
		});
		</script>
		<?php } ?>
Ideally I'd like it to appear under the product thumb and name in latest.
All help greatly appreciated :) )
June 10, 2012 at 1:01 pm #10048

Can anyone please help with this??

PM me and I will provide access info to the files if required.

July 30, 2012 at 11:01 am #11875
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.