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