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

Display Manufacturer Name on Products Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-19-2010, 01:03 PM
 
missing missing is offline
 

Newbie
  
Join Date: Sep 2010
Posts: 4
 

Default Re: Display Manufacturer Name on Products Page

@Snowrev, that's pretty easy, if you're looking to do it on the individual product page edit the product.php (not products.php)

Somewhere above // Assign the current location line add:
HTML Code:
#Product Manufacturer Logos $thisManufactorer = $product_info["manufacturerid"]; $manufacturer = func_query("SELECT xcart_manufacturers.*, xcart_images_M.image_path, xcart_images_M.filename FROM xcart_manufacturers, xcart_images_M WHERE xcart_manufacturers.manufacturerid = xcart_images_M.id AND manufacturerid = $thisManufactorer"); $smarty->assign("manufacturer", $manufacturer[0]); $smarty->assign("m_image_path", $manufacturer[0]["image_path"]); #Product Manufacturer Logos End

Then add this code to your product.tpl page:
HTML Code:
<img src="{if $manufacturer.image_url ne ''}{$manufacturer.image_url|amp}{else}{$xcart_web_dir}/image.php?id={$manufacturer.manufacturerid}&amp;type=M{/if}" alt="{$manufacturer.manufacturer|escape}" {if $manufacturer.image_x} width="{$manufacturer.image_x}"{/if}{if $manufacturer.image_y} height="{$manufacturer.image_y}"{/if} />
__________________
Missing Design*
x-cart version 4.4.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 07:16 AM.

   

 
X-Cart forums © 2001-2020