Help with displaying products by product group

Discussion in 'Customization & add-ons' started by gblocker, Feb 19, 2010.

  1. gblocker

    gblocker aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    9
    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
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Code:
    <?
    foreach ($_SESSION['_amember_products'] as $p){
    if($p[price_group]==2) print "<a href='".$p['url']."'>".$p['title']."</a><br />";
    }
    ?>
    

Share This Page