View Single Post
  #1  
Old 10-10-2012, 06:36 AM
 
loopsound loopsound is offline
 

Advanced Member
  
Join Date: Feb 2004
Posts: 85
 

Question Provider username as a variable - working but won't display in product list?

Thanks to PhilJ I am now able to use the provider username as a variable in my product information however I am stuck when it comes to how to get it to display in the product list.

In product.php

Code:
$product_owner = addslashes($product_info['provider']); if (!empty($product_owner)) { $provider_info = func_query_first("SELECT id, login, title, firstname, lastname FROM $sql_tbl[customers] WHERE id='$product_owner' AND usertype IN ('P','A')"); $smarty->assign('provider_info', $provider_info); }


then in product.tpl and products.tpl

Code:
{$provider_info.login}


But nothing displays in the product list only the product pages? Anyone know how adapt the following to make it display in the products list? I have contacted PhilJ but I am aware he is very busy at the moment
__________________
xcartgold 4.5.4
xcartgold 4.5.5
Reply With Quote