X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Manufacturer's logos listed on front page (https://forum.x-cart.com/showthread.php?t=30624)

g0t0pless 06-21-2007 09:04 PM

Re: Manufacturer's logos listed on front page
 
Is there a way to resize the manufacturer logos? they are awefully small on my site, yet there is still plenty of room in the column to make them bigger.

www.sarversystems.com for an example.

beetlejuice 06-22-2007 02:25 AM

Re: Manufacturer's logos listed on front page
 
g0t0pless,


On line 29 you will see towards the end width=70, just change this value to suit your image size. As with any table you can also centre, left or right align.

beetlejuice

g0t0pless 06-22-2007 02:47 PM

Re: Manufacturer's logos listed on front page
 
Line 29 of what?

I see it in the diff file, but I don't see what file it edits.

Can I just change the value then repatch?

beetlejuice 06-22-2007 03:17 PM

Re: Manufacturer's logos listed on front page
 
It edits 'skin1/modules/Manufacturers/menu_manufacturers.tpl'

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}&amp;type=M{/if}" alt="{$manufacturers_menu[mid].manufacturer|escape}" width="70" />{else}{$manufacturers_menu[mid].manufacturer}{/if}</a><br />

Then adjust the width="70" statement there. If you don't want the logos to be resized, then simply remove the statement.

Hope that helps

beetlejuice

g0t0pless 06-22-2007 07:38 PM

Re: Manufacturer's logos listed on front page
 
Thank you very much, worked perfectly.
Now, how do I center them? I tried align="center" with no luck.

beetlejuice 06-22-2007 09:16 PM

Re: Manufacturer's logos listed on front page
 
You'll need to edit your skin1.css for vert menu left to align differently. If you only wish the manufacturer's menu to be aligned center and the others as default, you'l need to create a new css style for it.

beetlejuice

g0t0pless 06-23-2007 09:15 PM

Re: Manufacturer's logos listed on front page
 
Since we're on the subject, what would be the easiest way to have the manufacturers' links open in a new window? As it is now, when you click on their logo, it takes you to a page on my site showing all products made by them (which is what I want), but when you click on their logo at the top of THIS page, it opens their site in my site's window.

beetlejuice 06-24-2007 02:19 AM

Re: Manufacturer's logos listed on front page
 
g0t0pless,

You must have their URL as a link from the icon. I don't have it that way, however it sounds like you just need to add
Quote:

target="_blank"
to your html and it will open in another window.

Easiest way is to use the WSIWYG editor for your manufacturer's pages

beetlejuice

g0t0pless 06-24-2007 10:47 AM

Re: Manufacturer's logos listed on front page
 
I was hoping for some code that automatically appended that to the http://www._____.com that I enter in.

beetlejuice 06-24-2007 03:32 PM

Re: Manufacturer's logos listed on front page
 
I don't know of any automated way of doing it. Just do it once and then copy and paste as required.

beetlejuice


All times are GMT -8. The time now is 07:45 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.