New Zenner
- Join Date:
- Jan 2010
- Posts:
- 2
- Plugin Contributions:
- 0
customizing product list for audio preview
hey everyone - my thanks in advance for any insights...
I'm new to PHP but pretty proficient with zencart - working on a lazy customization for an online music store. I've utilized media manager to add audio clips to each track, but want those preview buttons to show in the product list view as well.
i've already made a simple mod to the product_list page that modifies the manufacturer_name field to instead show an audio preview button. the problem is i want that button to link to the audio clip already associated with the product id.
here's the relevant code:
media manager modification (works on the product info page in the media manager box) :
<div class="mediaTypeLink"><a target="player" href="<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>" <?php echo '<span class="mediaClipFilename">' . '<img src="http://www.xxx.com/zencart/playbutton.jpg" height="20" width="20"</img>' . '</span>' . (!empty($za_clip['clip_type']) ? '<span class="mediaClipType"> (' . $za_clip['clip_type'] . ')</span>' : ''); ?></a></div>here's the product list page line of code:
$lc_text = '<a target="player" href="' . zen_href_link(FDIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true) . '">' . '<img src="http://www.xxx.com/zencart/playbutton.jpg" height="20" width="20"</img>' . '</a>';
I'm getting the button but not the link. i'm no script expert but it looks to me like they're in two different formats, based on the quotes. what am I missing? All I want is for the product list to show the product, buy now button, model number, title, and preview button. if anyone can help, i'd be deeply greatful. keep in mind i'm a novice at best when it comes to code. i understand the logic but not the syntax.
cheers