X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   X-Cart 4.0.0 Showing Manufacturer on Product Page (https://forum.x-cart.com/showthread.php?t=8564)

gerrick@ncs-online.com 04-12-2005 03:39 PM

I did get this to work in the product.tpl but I could not get it to work in products.tpl.

Is there a difference or a change needed?

Thanks in advance.

Hmm, the version listed below is wrong, I'm 0n 4.0.13

akiragraphics 04-19-2005 06:49 PM

pls post example link
 
none of the live site links above show the functionality of this mod.

can someone pls post?

RQJay 04-27-2005 02:58 PM

Yes I would like to know if the manufacturers logo can be placed in the product.tpl as well as the products.tpl file?

mffowler 04-27-2005 04:18 PM

Isn't that in Modules/Manufacturers/customer_manufacturer_products.tpl?

Something like:
- mike

august 05-11-2005 10:55 PM

Quote:

none of the live site links above show the functionality of this mod.

can someone pls post?


http://www.vortex-online.com/store/product.php?productid=42&cat=0&bestseller

RQJay 05-14-2005 09:49 PM

Wow that site looks good, but I am still having problems getting the manufacturers logo to show for me.
I am just getting the standard Xcart image holder.
Could someone please post the correct code to display the manufacturers logo at the top of the products template?
Thnaks

Online Michael 05-16-2005 08:55 AM

Ok, this is how I did it and it works like a charm in 4.0.13. The following code first checks to see if a manufacturers image is available. If so, the image is shown as a link. I also created a language file called {$lng.lbl_click_more_manuf_products} which basically say "Click above image to see all toys under this manufacturer".

In the product.tpl add this code wherever you want the image to appear. If you cut and paste this code as is and insert it just after the "</TR></TABLE></TD>" code at around row 142, the image will appear to the right hand side in a column of it's own.

Code:

{if $manufacturer ne ""}
<td width="100" align="center" valign="top">[img]{$xcart_web_dir}/mlogo.php?manufacturerid={$product.manufacturerid}[/img]

{$lng.lbl_click_more_manuf_products}
</TD>
{/if}


In product.php at the following code just after:

$main = "product";
$smarty->assign("main",$main);

(you should find it near row 50)

Code:

$thisManufactorer = $product_info["manufacturerid"];
$manufacturer = func_query("SELECT * FROM $sql_tbl[manufacturers] WHERE manufacturerid = $thisManufactorer");
$smarty->assign("manufacturer", $manufacturer[0]["manufacturer"]);


This is a great mod so I hope it works for you as well as it works for me.

chastie 07-14-2006 01:14 PM

Does anyone know how to get the manufacturer's description to display on product.tpl ? {$manufacturer.descr} isn't working. Thanks in advance for any replies! -christa

chastie 07-14-2006 01:26 PM

I figured it out...

In product.php, under this code provided above:
($smarty->assign("manufacturer", $manufacturer[0]["manufacturer"]);)

Add:
$smarty->assign("thedescr", $manufacturer[0]["descr"]);


Then in product.tpl, add:
{$thedescr}

smek 10-23-2008 11:36 AM

Re: X-Cart 4.0.0 Showing Manufacturer on Product Page
 
This worked for me as well. I have 4.1.10



Quote:

Originally Posted by mffowler
For manufacturer name, not description of:

All I did was put the following code in the customer/main/product.tpl:
Code:

<TR><TD align="left" valign="top">{$lng.lbl_manufacturer}:</TD>
<TD align="left" valign="top">{$product.manufacturer}</TD>
</TR>

... and now my product's manufacturer is in the product details page.

- Mike



All times are GMT -8. The time now is 02:13 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.