I'm not sure if anyone else will find this appealing but it suited me and my site.
XCart were able to help me with this, and as this forum has helped me tremendously, I'd like to give a little back to it.
Basically what I wanted to do was have my suppliers logos in place of the text links in the manufacturer's menu, not the manufacturer's page as other threads have established. If there was no logo then the standard text link would appear. Looks much better if it's either one or the other though. Mixed images and text yech!!!
Anyhow here it is:
manufacturer_images.txt (
IMPORTANT!! Rename the .txt to .diff)
Quote:
In order to apply the modification, please download the file 'manufacturer_images.diff' and then apply it in the "Apply patch" box on the "Patch/upgrade" page in the admin back-end. The patch will modify the following files in your X-Cart store:
modules/Manufacturers/customer_manufacturers.php
skin1/modules/Manufacturers/menu_manufacturers.tpl
After the patch is applied, you will see that your manufacturers' logos show up in the manufacturers menu instead of the text links. The logos are resized to the 70 pixels width. If you would like to adjust the width, please edit the file 'skin1/modules/Manufacturers/menu_manufacturers.tpl' and find the following line there:
<a href="manufacturers.php?manufacturerid={$manufactu rers_menu[mid].manufacturerid}" class="VertMenuItems">{if $manufacturers_menu[mid].is_image eq 'Y'}<img src="{if $manufacturers_menu[mid].image_path ne ''}{$manufacturers_menu[mid].image_path}{else}{$xcart_web_dir}/image.php?id={$manufacturers_menu[mid].manufacturerid}&type=M{/if}" alt="{$manufacturers_menu[mid].manufacturer|escape}" width="70" />{else}{$manufacturers_menu[mid].manufacturer}{/if}</a><br />
|
You can see the result
here.
Hope this mod helps others looking for this type of mod.
Any problems let me know, however this was written exclusively for XCart 4.16, but should work on all the 4.1 series, but can't guarantee it.
beetlejuice