View Single Post
  #15  
Old 10-01-2011, 01:48 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default Re: display names of hidden products?

The trick was going to manufacturers.php , and before

the current // assign the current location, add this code;

if ($manufacturerid) { // get hidden products array $hidden_products = func_query("SELECT * FROM $sql_tbl[products] WHERE forsale = 'H' AND manufacturerid = '$manufacturerid'"); //Assign the hidden_products variable (array) to smarty $smarty->assign('hidden_products', $hidden_products); }

then on my products_t_menu.tpl, I used this code;

{foreach from=$hidden_products item=i} SKU: <a href="product.php?productid={$i.productid}">{$i.pr oductcode}</a> <br /> {/foreach}
__________________
Version 4.4.3
Reply With Quote