| ||||||||||
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 |
#31
|
|||||||
|
|||||||
Re: Manufacturers with icons on customer_manufacturers_list.tpl
mine... looks maybe a bit prettier - x-cart 4.0.18
Code:
__________________
Core version: 5.5.xx |
|||||||
#32
|
|||||||
|
|||||||
Re: Manufacturers with icons on customer_manufacturers_list.tpl
Sorry to resurrect an old thread, but I have managed to get it working, however I want the manufacturers listings on my homepage, I have included the customer_manufacturers_list.tpl at the bottom of the welcome.tpl but this just shows the table and nothing else
would anyone have any ideas? thanks
__________________
4.0.1.18 & 4.1.6 & 4.1.9 & 4.1.11 & 4.2.2 & 4.3.2, 4.6.1 |
|||||||
#33
|
|||||||
|
|||||||
Re: Manufacturers with icons on customer_manufacturers_list.tpl
the code!
{capture name=dialog} {assign var="tmp" value="0"} {section name=mid loop=$manufacturers} {if $manufacturers[mid].manufacturerid}{assign var="tmp" value="1"}{/if} {/section} {section name=mid loop=$manufacturers} { if %mid.first% } <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> {/if} { if %mid.index% is div by 5} <tr> {/if} <td align="center" valign="middle"> <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0"><tr><td height="56"> <A href="manufacturers.php?manufacturerid={$manufactu rers[mid].manufacturerid}"> <img src={$ImagesDir}/brands/{$manufacturers_menu[mid].manufacturer|replace:' ':''}.gif /></a> </td> <td align="center" valign="middle"> <font class="ItemsList"> {* {$manufacturers[mid].manufacturer}</font> *} </td></table> { if %mid.last% } </table> {/if} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_manufacturers content=$smarty.capture.dialog extra='width="100%"'}
__________________
4.0.1.18 & 4.1.6 & 4.1.9 & 4.1.11 & 4.2.2 & 4.3.2, 4.6.1 |
|||||||
#34
|
|||||||
|
|||||||
Re: Manufacturers with icons on customer_manufacturers_list.tpl
Is this code compatible with 4.1.7?
|
|||||||
#35
|
|||||||||
|
|||||||||
Re: Manufacturers with icons on customer_manufacturers_list.tpl
{* $Id: customer_manufacturers_list.tpl,v 1.6 2005/11/21 12:42:10 max Exp $ *}
{capture name=dialog} {assign var="tmp" value="0"} {section name=mid loop=$manufacturers} {if $manufacturers[mid].manufacturerid}{assign var="tmp" value="1"}{/if} {/section} {section name=mid loop=$manufacturers} { if %mid.first% } <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> {/if} { if %mid.index% is div by 4} <tr> {/if} <td align="center" valign="middle"> <table bgcolor="#FFFFFF" cellspacing="5" cellpadding="5" border="0"><tr><td height="65"> <A href="manufacturers.php?manufacturerid={$manufactu rers[mid].manufacturerid}"> <img src="image.php?id={$manufacturers[mid].manufacturerid}&type=M" /></a> </td> <td align="center" valign="middle"> <font class="ItemsList"> {* {$manufacturers[mid].manufacturer}</font> *} </td></table> { if %mid.last% } </table> {/if} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_manufacturers content=$smarty.capture.dialog extra='width="100%"'}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#36
|
|||||||
|
|||||||
Re: Manufacturers with icons on customer_manufacturers_list.tpl
I have modified my page to a 3 column layout with properly aligned logos & manufacturer names. Also, I made the logos and the manufacturer titles all clickable. One thing you will need to do is adjust the height of the image td tag to the height of your tallest logo (up or down).
To change the number of columns displayed, just change line 10 of the code below to div by x (the number of columns you want). This code is working with version 4.1.7. -Jen Quote:
__________________
- - Versions: 4.1.10 and 4.3.0 (see post for which cart) "Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison "Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982 "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
|
#37
|
|||||||
|
|||||||
Re: Manufacturers with icons on customer_manufacturers_list.tpl
Hi,
I think this looks great but when in the manufacturers page and you click on link it does not have the manufacturers id so will always return to the default page, is there anything I need to edit to link it to the manufacturers ID? |
|||||||
#38
|
|||||||
|
|||||||
Re: Manufacturers with icons on customer_manufacturers_list.tpl
Gavin, can you post your code out of /public_html/skin1/modules/Manufacturers/customer_manufacturers_list.tpl file? That would help us help you.
The code I posted is working fine for me on 4.1.7. I had the same problem you are having b/c I used the originally posted code & there was a change I had to make to that. -Jen
__________________
- - Versions: 4.1.10 and 4.3.0 (see post for which cart) "Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison "Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982 "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
#39
|
|||||||
|
|||||||
Re: Manufacturers with icons on customer_manufacturers_list.tpl
Quote:
me 2... any idea? lovely mod, but doesn't work for me yet
__________________
Version 4.1.11 |
|||||||
#40
|
|||||||
|
|||||||
Re: Manufacturers with icons on customer_manufacturers_list.tpl
Yes! it's working now!!
I study your code character by character and found space in between "manufactu rers" corrected it and working great! awesome mod <a href="manufacturers.php?manufacturerid={$manufactu rers[mid].manufacturerid}"><img src="image.php?id={$manufacturers[mid].manufacturerid}&type=M" border="0" /></a></td></tr> <tr><td align="center" valign="top" height="50"> <a href="manufacturers.php?manufacturerid={$manufactu rers[mid].manufacturerid}"><font size="3">{$manufacturers[mid].manufacturer}</font></a></td></tr></table>
__________________
Version 4.1.11 |
|||||||
|
|||
X-Cart forums © 2001-2020
|