I have put the original code back to where it started. Then added
PHP Code:
<!--bof Product URL -->
<?php
if (zen_not_null($products_record_company_url)) {
if ($flag_show_product_music_info_record_company == 1) {
?>
<p id="productInfoLink" class="productMusic centeredContent"><?php echo sprintf(TEXT_RECORD_COMPANY_URL, zen_href_link(FILENAME_REDIRECT, 'action=music_record_company&record_company_id=' . zen_output_string_protected($music_extras->fields['record_company_id']), 'NONSSL', true, false)); ?></p>
<?php
} // $flag_show_product_info_record_company
}
?>
<!--eof Product URL -->
and
PHP Code:
<!--bof record company url and image -->
<div id="fuzzRecord">
<?php
if (zen_not_null($products_record_company_url)) {
if ($flag_show_product_music_info_record_company == 1) {
?>
<p id="productInfoLink" class="productMusic centeredContent">For more information, you can visit the <a href=<?php echo sprintf(TEXT_RECORD_COMPANY_URL, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_record_company_url), 'NONSSL', true, false)); ?> >webpage</a> of manufacturer.</p>
<?php
} //$flag_show_product_info_record_company
}
?>
<?php echo sprintf('' . TEXT_RECORD_COMPANY_URL, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_record_company_url), 'NONSSL', true, false) . '">' . zen_image(DIR_WS_IMAGES . $record_company->fields['record_company_image']) . '</a>'); ?>
</div>
<!--eof record company url and image -->
All of this was copied from the code found in post#11 here https://www.zen-cart.com/showthread....t=artist+image with no changes, but with this part left out.
PHP Code:
<!--bof Product artists url and image -->
<?php if ($flag_show_product_music_info_artist == 1 or $flag_show_product_music_info_genre == 1 or $flag_show_product_music_artist == 1) { ?>
<ul id="productDetailsList" class="floatingBox back">
<?php echo (($flag_show_product_music_info_artist == 1 and !empty($products_artist_name)) ? '<li>' . TEXT_ARTIST_URL . $products_artist_name . '</li>' : '') . "\n"; ?>
<?php
// $flag_show_product_info_record_company
?>
</ul>
<br class="clearBoth" />
<?php
}
?>
<?php echo sprintf('<a href="' . TEXT_ARTIST_IMAGE_URL, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_artist_url), 'NONSSL', true, false) . '">' . zen_image(DIR_WS_IMAGES . $record_artists->fields['artists_image']). '</a>'); ?>
<!--eof Product artists url and image -->
I also created the div fuzzRecord
I don't know how to proceed from here as this is a little over my head. Ideally I would like to be able to click the image and have all products from that record company come up, but I don't know where the link should go, or how to code it. I would be satisfied just removing the link completely for now but can't figure that out. I appreciate the help
Bookmarks