Forums / Setting Up Categories, Products, Attributes / Display Product Manufacturer Image

Display Product Manufacturer Image

Locked

Started by nullmind on 30 Aug 2007, 6:43 PM · Views: 1,895

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Aug 2007, 6:43 PM
#1
nullmind avatar

nullmind

Zen Follower

Join Date:
Jul 2007
Posts:
129
Plugin Contributions:
0

Display Product Manufacturer Image

Is there a way to make "Display Product Manufacturer Name" into "Display Product Manufacturer Name"

Basically, in the product listing, instead of saying the name of the Manufacturer, id like it to show the Manufacturer logo instead

Any ideas ?

30 Aug 2007, 8:28 PM
#2
brandtim avatar

brandtim

Zen Follower

Join Date:
Apr 2006
Posts:
250
Plugin Contributions:
0

Re: Display Product Manufacturer Image

In includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php, change this (around line 122):

  <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>

to this:

  <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . zen_image(DIR_WS_IMAGES . zen_get_products_manufacturers_image((int)$_GET['products_id']), $manufacturers_name) . '</li>' : '') . "\n"; ?>

BrandTim

30 Aug 2007, 8:55 PM
#3
nullmind avatar

nullmind

Zen Follower

Join Date:
Jul 2007
Posts:
129
Plugin Contributions:
0

Re: Display Product Manufacturer Image

thanks

do you knwo how do I change the logo size on the product listing ?

30 Aug 2007, 9:18 PM
#4
brandtim avatar

brandtim

Zen Follower

Join Date:
Apr 2006
Posts:
250
Plugin Contributions:
0

Re: Display Product Manufacturer Image

<?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . zen_image(DIR_WS_IMAGES . zen_get_products_manufacturers_image((int)$_GET['products_id']), $manufacturers_name, YOUR_WIDTH_HERE, YOUR_HEIGHT_HERE) . '</li>' : '') . "\n"; ?>

BrandTim