Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart 4.0.0 Showing Manufacturer on Product Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 04-12-2005, 03:39 PM
 
gerrick@ncs-online.com gerrick@ncs-online.com is offline
 

Member
  
Join Date: Sep 2004
Posts: 23
 

Default

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
__________________
X-Cart version 4.1.6
PHP 5.1.1
MySQL server 5.0.27
MySQL client 4.1.7
Web server Microsoft-IIS/6.0
Operation system Windows
Reply With Quote
  #12  
Old 04-19-2005, 06:49 PM
 
akiragraphics akiragraphics is offline
 

Member
  
Join Date: Nov 2004
Posts: 12
 

Default pls post example link

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

can someone pls post?
__________________
Akira Graphics - www.akiragraphics.com

Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_perl/1.26 PHP/4.3.3 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b/xCart 4.0

Live X-Cart Sites:
www.JACAutoDesign.com
Reply With Quote
  #13  
Old 04-27-2005, 02:58 PM
  RQJay's Avatar 
RQJay RQJay is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 185
 

Default

Yes I would like to know if the manufacturers logo can be placed in the product.tpl as well as the products.tpl file?
Reply With Quote
  #14  
Old 04-27-2005, 04:18 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

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

Something like:
- mike
__________________
4.1.9
Reply With Quote
  #15  
Old 05-11-2005, 10:55 PM
  august's Avatar 
august august is offline
 

Senior Member
  
Join Date: Jul 2003
Posts: 178
 

Default

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
__________________
"The point is, to make so much money, that money isn't the point anymore."

Pro Version 4.0.19
Gold Version 4.1.3
Linux
Reply With Quote
  #16  
Old 05-14-2005, 09:49 PM
  RQJay's Avatar 
RQJay RQJay is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 185
 

Default

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
Reply With Quote
  #17  
Old 05-16-2005, 08:55 AM
 
Online Michael Online Michael is offline
 

eXpert
  
Join Date: Mar 2005
Location: Melbourne, Australia
Posts: 273
 

Default

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.
__________________
X-Cart 5.3.5.4
Reply With Quote
  #18  
Old 07-14-2006, 01:14 PM
 
chastie chastie is offline
 

Member
  
Join Date: May 2006
Posts: 17
 

Default

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
__________________
4.0.18
Reply With Quote
  #19  
Old 07-14-2006, 01:26 PM
 
chastie chastie is offline
 

Member
  
Join Date: May 2006
Posts: 17
 

Default

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}
__________________
4.0.18
Reply With Quote
  #20  
Old 10-23-2008, 11:36 AM
 
smek smek is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 54
 

Default 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
__________________
xcart 4.5.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:08 PM.

   

 
X-Cart forums © 2001-2020