| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Manufacturer Link 4.1.x | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I've been trying to get the manufacturer's name to show up with the products on products.tpl and products_t.tpl and have not had much luck.
My Code: Code:
The link works, but the text does not show. To find out the link was working I just inserted some text. I've searched for solutions but none apply to the current branch of x-cart. I do not want the image for the manufacturer, just the name. Thanks
__________________
X-Cart 4.0.12 |
|||||||
#2
|
|||||||
|
|||||||
![]() Shouldn't the </a> come after the {$products[product].manufacturer} ?
|
|||||||
#3
|
|||||||
|
|||||||
![]() it should and it does, I made a typo. Doesnt have any bearing on the problem however, even with it outside the </a>, it should still display the name, just without a link.
__________________
X-Cart 4.0.12 |
|||||||
#4
|
|||||||
|
|||||||
![]() So I'm just going to assume nobody who shows the manufacturer name on their current site has upgraded to the 4.1.x branch and I am the only one with this problem?
__________________
X-Cart 4.0.12 |
|||||||
#5
|
|||||||
|
|||||||
![]() I have done this, I was just trying to remember how. I think this may be it...
In products.php enter the code if($products) { foreach($products as $key=> $product) $products[$key]["manufacturer"]= func_query_first_cell("select manufacturer from $sql_tbl[manufacturers] where manufacturerid=".$product["manufacturerid"]); } just before assigning the $smarty variables. |
|||||||
#6
|
|||||||||
|
|||||||||
![]() I use this in product.tpl don't know if it will help you. It shows manufacturer logo and "See All..." but not the manufacturer name
{if $product.manufacturer ne ""} <div style="margin-bottom: 10px;"> <a href="manufacturers.php?manufacturerid={$product.m anufacturerid}"><img src="image.php?id={$product.manufacturerid}&ty pe=M" alt="{$manufacturer}" style="vertical-align:middle;" border="0" /></a> <a href="manufacturers.php?manufacturerid={$product.m anufacturerid}">See All Products</a> </div> {/if}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#7
|
|||||||
|
|||||||
![]()
__________________
X-Cart Pro 4.1.9 PHP5.2.5 MySQL 5.0.54 IIS/Apache/NGINX Webservers |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|