Manufacturers with icons on customer_manufacturers_list.tpl
To get the manufacturer icons to show up in the manufacturers list (not the menu- the full page) was pretty simple, but getting them into columns was not that easy ... so I based it on the subcategories table and the manufacturers menu. The code below does not have the title or dialog.tpl, but you can add that in ...
Just change the 4 in Code:
{ if %mid.index% is div by 4} Modules/Manufacturers/customer_manufacturers_list.tpl: Code:
{* $Id: customer_manufacturers_list.tpl,v 1.3 2004/05/28 12:21:10 max Exp $ *} Code:
{include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_manufacturers menu_content=$smarty.capture.menu link_href="manufacturers.php"} If anyone has any improvements to this, I would love to incorporate them. - Mike |
Mike - Great mod! Thanks for that!
There was a problem with the last include where it should be dialog.tpl rather than dialog_home.tpl for most installations but that is a very minor gripe and easy to sort out. Just what I was looking for! If you have any other mods relating to manufacturers that would want to post I'd be interested as I am planning to use this module extensively when my store goes live. FN |
Excellent, and exactly what I needed. Thank you! Thanks also fearnothing, and for the non-experts like me, change the following in the code to work (near bottom):
Quote:
|
Again, thank you.
Would anyone know how to make it so only the "image" logo and "description" shows up? Right now, it's the image, and the manufacturer name under the image. So it would look like this: .gif image explanation of the product, etc... explanation of the product, etc... explanation of the product, etc... Thank you. |
My /modules/Manufacturers/customer_manufacturers_list.tpl
Does not contain all those codes.. which like do I change and what do I add? Sound like an idiot huh? but please help me. :-) If i just copy the code above to my file, will it work? |
Damn.. I am an Idiot! I Am suppose to copy the codes.. haha.
while i'm at it.. how do I make the name of the manufacture to center it? now it's like this IMAGE Long Manufactuere Name How do i make to look like this: ....IMAGE..... Manufacturer |
hyratech - I wrapped the logo and link in <DIV> tags like this:
<div align="center"> [img]mlogo.php?manufacturerid={$manufacturers[mid].manufacturerid}[/img] </div> The other change was to take out the <font size="3"> ... </font> tags to make the link a little less overpowering :) |
I'm a newbee, can u be a little more specific... like where and what file... thanx
|
Sorry ... I'm a newbie myself in everything but what it says on the left of this page!
In the original code above in Modules/Manufacturers/customer_manufacturers_list.tpl you''ll see this line about three-quarters of the way down: <tr><td align="center" valign="middle"> insert a new line of code in after that line like this: <div align="center"> then look for the closing </A> tag which is in the fourth line down after that new line you have just entered, and after the tag put </div> so now the line in question should look like this: [/b]</font></A></div></td></tr></table> Changing the font size is an optional nicety - I would try this first and make sure it works for you. |
Another great mod, just installed myself thanks, however one quick question.
The images are being pulled from the databse rather than file system, is it possible to change this like the category icons? |
All times are GMT -8. The time now is 04:15 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.