| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
X-Cart 4.1.3 Showing Manufacturer on Product Page | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
X-Cart 4.1.3 Showing Manufacturer on Product Page
after alot of messing around i found out how todo it
in product.php add $thisManufactorer = $product_info["manufacturerid"]; $manufacturer = func_query("SELECT * FROM $sql_tbl[manufacturers] WHERE manufacturerid = $thisManufactorer"); $smarty->assign("manufacturer", $manufacturer[0]["manufacturer"]); and in product.tpl add {if $manufacturer ne ""} <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td height="70"><div align="center"><A href="manufacturers.php?manufacturerid={$product.m anufacturerid}"> <img src="image.php?id={$product.manufacturerid}&type=M " alt="{$manufacturer}" /></a></div></td> </tr> <tr> <td align="center" valign="middle"></td> </tr> </table> </TD>{/if} i hope that helps a few of you
__________________
X-cart - 4.3.2 loads of mods and custom code |
|||||||
#2
|
|||||||
|
|||||||
Re: X-Cart 4.1.3 Showing Manufacturer on Product Page
how can show manufacturer in featured products
__________________
Gonzalo Astudillo Pizarro | https://about.me/gonzaloastudillo |
|||||||
#3
|
|||||||
|
|||||||
Re: X-Cart 4.1.3 Showing Manufacturer on Product Page
I add this on product.tpl. (x-cart 4.1.6)
it is working. I think you don't need to edit product.php code: {if $product.manufacturer ne ""} <table width="100%" cellpadding="0" cellspacing="0"> <tr><td align="left"><a href="manufacturers.php?manufacturerid={$product.m anufacturerid}"><img src="image.php?id={$product.manufacturerid}&type=M " alt="{$manufacturer}" border="0" /></a></td></tr> </table> {/if}
__________________
X Cart Gold Ver. 4.1.6 |
|||||||
#4
|
|||||||
|
|||||||
Re: X-Cart 4.1.3 Showing Manufacturer on Product Page
I displayed manufacturer name, image and link on product page but
How Do I display manufacturer description on product page? Also i want to show 5 random products from manufacturer on product detail page. is it possible? Any idea?
__________________
X Cart Gold Ver. 4.1.6 |
|||||||
#5
|
|||||||
|
|||||||
Re: X-Cart 4.1.3 Showing Manufacturer on Product Page
{if $manufacturer ne ""}
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td height="70"><div align="center"><A href="manufacturers.php?manufacturerid={$product.m anufacturerid}"> <img src="image.php?id={$product.manufacturerid}&type=M " alt="{$manufacturer}" /></a></div></td> </tr> <tr> <td>{$manufacturer.descr}</td> </tr> <tr> <td align="center" valign="middle"></td> </tr> </table> </TD>{/if}
__________________
X-cart - 4.3.2 loads of mods and custom code |
|||||||
#6
|
|||||||
|
|||||||
Re: X-Cart 4.1.3 Showing Manufacturer on Product Page
Quote:
It didn't work. Imy x-cart version is 4.1.6. I think It might be begin like this : {$product.manufacturer.......}
__________________
X Cart Gold Ver. 4.1.6 |
|||||||
#7
|
|||||||
|
|||||||
Re: X-Cart 4.1.3 Showing Manufacturer on Product Page
ok I did.
edit include/func/func.product.php line 666 find Code:
replace: Code:
Than ADD customer/main/product.tpl Code:
if you want to limit for manufacture description change {$product.manudescr} to {$product.manudescr|truncate:250:"...":true} that's it. it is working on 4.1.6 I try to show random 5 products which are same manufacture. Any Idea? .
__________________
X Cart Gold Ver. 4.1.6 |
|||||||
#8
|
|||||||
|
|||||||
Re: X-Cart 4.1.3 Showing Manufacturer on Product Page
works fine in 4.1.9
Only thing in your code you have Code:
It should be Code:
Otherwise you can not click the logo to the actual manufactuor page (you had a space here href="manufacturers.php?manufacturerid={$product.m anufacturerid}"> <img) Thanks, Mike
__________________
Version 4.1.9 |
|||||||
#9
|
|||||||||
|
|||||||||
Re: X-Cart 4.1.3 Showing Manufacturer on Product Page
Quote:
http://forum.x-cart.com/showthread.php?t=35108 |
|||||||||
#10
|
|||||||
|
|||||||
Re: X-Cart 4.1.3 Showing Manufacturer on Product Page
I can't get this to work on 4.1.9. It shows the missing image with the manufacturer name and description but no full image. It links correct but does not display the image. I do use the Dynamic Image Generator...does that do anything?
__________________
X-Cart Pro 4.1.9 PHP5.2.5 MySQL 5.0.54 IIS/Apache/NGINX Webservers |
|||||||
|
|||
X-Cart forums © 2001-2020
|