Has anyone already inserted the (uploaded) manufacturer image next to manufacturer name at product_info_display?
Printable View
Has anyone already inserted the (uploaded) manufacturer image next to manufacturer name at product_info_display?
Here my code so far. It's picking up the wrong image. Anyone an idea how to adjust this?
Attachment 20496Code:<?php echo '<div class="manufacturer-product-info-display">' . zen_image(DIR_WS_IMAGES, $manufacturers_image) . '</div>' ; ?>
I have tried three possibilities but none works.
Code:<?php echo '<div class="">' . zen_image(DIR_WS_IMAGES . $manufacturer_image) . '</div>'; ?>
<?php echo '<div class="">' . zen_image(DIR_WS_IMAGES . $manufacturer_image->fields['manufacturers_image']) . '</div>'; ?>
<?php echo '<div class="">' . zen_image(DIR_WS_IMAGES . $manufacturer_info_sidebox->fields['manufacturers_image']) . '</div>'; ?>
The variable $manufacturers_image isn't set. You need to set it.
Code:$manufacturers_image = zen_get_products_manufacturers_image($_GET['products_id']);
echo '<div class="manufacturer-product-info-display">' . zen_image(DIR_WS_IMAGES . $manufacturers_image, $manufacturers_name, SMALL_IMAGE_HEIGHT, SMALL_IMAGE_WIDTH) . '</div>' ;
Thank you very much!