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
|