I just had 1 more question about this. Code works great in the product_listing but when I add it to a Featured Items mod it causes all the info on the product pages not to display.
Code:
if (DISPLAY_FLEX_FEATURED_CENTERBOX_NAME == 'true') {
$products_name = '<span class="flexFCBname"><a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a>' . '</span>';
// bof: display media clip filenames
$_GET['products_id'] = $featured_products->fields['products_id'];
require(DIR_WS_MODULES . zen_get_module_directory('media_manager.php'));
if ($zv_product_has_media) {
while (list($za_media_key, $za_media) = each($za_media_manager)) {
while(list($za_clip_key, $za_clip) = each($za_media_manager[$za_media_key]['clips'])) {
$products_name .= ' <span class="Play" href ="media/' . $za_clip['clip_filename'] . '">' . '<img src="images/play_button.png"/></span>';
}
}
}
unset($_GET['products_id'], $za_media_manager, $zv_product_has_media);
// eof: display media clip filenames
Example here:
www.hiphopbeatz.com/2014
I think it has to do with unset($_GET['products_id']. Any suggestions?
Thanks!
Bookmarks