Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Product Listing Modification to Include Link to Media Manager Preview

Product Listing Modification to Include Link to Media Manager Preview

Locked

Views: 1,450

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
13 Feb 2008, 12:41 PM
#1
sleastack avatar

sleastack

New Zenner

Join Date:
Oct 2006
Posts:
18
Plugin Contributions:
0

Product Listing Modification to Include Link to Media Manager Preview

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:

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

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

Any advice would be appreciated.

-Abe

1 Mar 2008, 11:25 PM
#2
diixo avatar

diixo

New Zenner

Join Date:
Feb 2008
Posts:
7
Plugin Contributions:
0

Re: Product Listing Modification to Include Link to Media Manager Preview

bump....