| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Manufacturers with icons on customer_manufacturers_list.tpl | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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:
Modules/Manufacturers/customer_manufacturers_list.tpl: Code:
Code:
If anyone has any improvements to this, I would love to incorporate them. - Mike
__________________
4.1.9 |
|||||||
|
#2
|
|||||||
|
|||||||
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
__________________
www.smartchoicemusic.com Smart Choice Music - Import CD and DVD Specialists 4.6.0 MySQL 5.5.34 PHP 5.4.24 Apache/2.2.26 Multiple homegrown and paid-for mods |
|||||||
#3
|
|||||||
|
|||||||
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:
__________________
-------------------- X-Cart Gold 4.1.11 Linux/Apache -------------------- |
|||||||
#4
|
|||||||
|
|||||||
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.
__________________
-------------------- X-Cart Gold 4.1.11 Linux/Apache -------------------- |
|||||||
#5
|
|||||||
|
|||||||
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?
__________________
hyratech X-CART Gold 4.1.10 Hosted - Unix |
|||||||
#6
|
|||||||
|
|||||||
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 X-CART Gold 4.1.10 Hosted - Unix |
|||||||
#7
|
|||||||
|
|||||||
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
__________________
www.smartchoicemusic.com Smart Choice Music - Import CD and DVD Specialists 4.6.0 MySQL 5.5.34 PHP 5.4.24 Apache/2.2.26 Multiple homegrown and paid-for mods |
|||||||
#8
|
|||||||
|
|||||||
I'm a newbee, can u be a little more specific... like where and what file... thanx
__________________
hyratech X-CART Gold 4.1.10 Hosted - Unix |
|||||||
#9
|
|||||||
|
|||||||
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.
__________________
www.smartchoicemusic.com Smart Choice Music - Import CD and DVD Specialists 4.6.0 MySQL 5.5.34 PHP 5.4.24 Apache/2.2.26 Multiple homegrown and paid-for mods |
|||||||
#10
|
|||||||
|
|||||||
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? |
|||||||
|
|||
X-Cart forums © 2001-2020
|