View Single Post
  #41  
Old 07-04-2005, 07:07 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default

Someone came to me unable to get this code to work on their site and I wasn't able to fix it either so I created another way to do this.

To show the manufacturer on a per product basis on products.php you can also do this instead:

In products.php before:
Code:
$smarty->assign("products",$products);

Insert:
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"]); }

In skin1/customer/main/products_t.tpl or skin1/customer/main/products.tpl insert the following where you want the manufacturer to show up
Code:
{$products[product].manufacturer}

Hope that helps those who are stuck! A bit less code and less files to edit.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote