How to list products?

Discussion in 'Customization & add-ons' started by amy swift, Feb 10, 2009.

  1. amy swift

    amy swift New Member

    Joined:
    Jan 31, 2009
    Messages:
    4
    I am currently trying to make a custom .php page that will display some user information. One of those pieces of information is the products that the user is currently subscribed to.

    How do I do this? :\
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    You should take a look at the amember\member.php and amember\template\member.html for an idea of how to implement that (or use that page as a template and remove what you don't need)
  3. amy swift

    amy swift New Member

    Joined:
    Jan 31, 2009
    Messages:
    4
    Yeah, I've taken a look at both files and tried to figure it out. I'm not very keen with php. You wouldn't happen to know the code I need do you? I'd greatly appreciate it :)

    I've tried this, but it doesn't work (no surprise).
    PHP:
    <?php
    $p 
    $_SESSION['_amember_products'];
    print 
    "<ul>"
    foreach (
    'member_products' as $p){
    print 
    "<li><a href='".$p['url']."'>".$p['title']."</a></li>"
    }
    print 
    "</ul>";}
    ?>
  4. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    Hi Amy,

    What would you like to do with the custom coding?

    Lee

Share This Page