I am trying to build an MP3 download store. The way I envision it, I would like to have an audio preview link per product on the product listing page similar to the link on the product info page. I will use this link to create a button for an external player (java or flash button)
What I would like to know is: Does anyone know a good approach to what it would take to include:
The relevant code from tpl_modules_media_manager.php (displaying a link to media manager clip)
into the loop of elements for product listings.
Here is the particular code in tpl_modules_media_manager.php I am interested in:
Lastly, I would like to know how to only activate this if the selected product is an audio product and not a solid good like a T-Shirt(which I may one day like to sell).Code:<div class="mediaTypeLink"><a href="<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>" target="_blank"><?php echo '<span class="mediaClipFilename">' . $za_clip['clip_filename'] . '</span>' . (!empty($za_clip['clip_type']) ? '<span class="mediaClipType"> (' . $za_clip['clip_type'] . ')</span>' : ''); ?></a></div>
Any advice would be appreciated.
-Abe



