I am trying to display a list of products on a php page by product group. Is there anything similar to Code: <? foreach ($_SESSION['_amember_products'] as $p){ print "<a href='".$p['url']."'>".$p['title']."</a><br />"; } ?> but pulling from product group 2 only? many thanks
Code: <? foreach ($_SESSION['_amember_products'] as $p){ if($p[price_group]==2) print "<a href='".$p['url']."'>".$p['title']."</a><br />"; } ?>