Hi everyone,
Been asked by a customer to change the Manufacturers menu to a list one, did that ok but now he wants me to use the Manufacturers Images instead. I'm stuck, can anyone help?
thanks
Andy.
Hi everyone,
Been asked by a customer to change the Manufacturers menu to a list one, did that ok but now he wants me to use the Manufacturers Images instead. I'm stuck, can anyone help?
thanks
Andy.
This is the current code which produces the 'list'<?php
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
$content .= '<div class="betterCategories"><a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
for($i = 1; $i < count($manufacturer_sidebox_array); $i++) {
$content .= '<a href="index.php?manufacturers_id=' . $manufacturer_sidebox_array[$i]['id'] . '&main_page=index">';
$content .= $manufacturer_sidebox_array[$i]['text'];
$content .= "</a>\n<br />\n";
}
?>
You'd have to alter the module, not just the template.
- add m.manufacturers_image to the 2 select statements:- change the array contents that's displayed via the template to use the image:Code:select m.manufacturers_id, m.manufacturers_name...
Code:$manufacturer_sidebox_array[] = array('id' => '', 'text' => zen_image(DIR_WS_IMAGES . $manufacturer_sidebox->fields['manufacturers_image'], $manufacturer_sidebox->fields['manufacturers_name']) );
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Followed both posts and now I get a list of No Picture available for each of my manufacturers.
I understand that the code needs to point to the right folder where my images are but what do I have to change in the code for that?
My images are in image/manufacturers/logo_name.gif
Could someone help please
Bookmarks