Member.html Modification

Discussion in 'Customization & add-ons' started by rked, Mar 5, 2008.

  1. rked

    rked New Member

    Joined:
    Jun 11, 2007
    Messages:
    29
    I am trying to place a blurb in the left hand column DEPENDENT on
    which product was actually ordered. How can I do an if and else statement
    for products. Ex. If product a is subscribed to, show this text--if product b is subscribed to, show this text.

    ALSO, I added a field to signup form...how do I grab the contents of that field
    and bring it in for display on the member.html page?

    Thank you for your time, ahead of time :)
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Q: I added a field to signup form...how do I grab the contents of that field
    and bring it in for display on the member.html page?

    According to the manual:
    http://manual.amember.com/Integrating_aMember_Pro_with_website
    You can also add additional information. If field is added as a common, it must be used as
    {$smarty.session._amember_user.data.phone}
    Else, it it is a SQL field, it must be used as :
    {$smarty.session._amember_user.phone}

    Q: How can I do an if and else statement for products. Ex. If product a is subscribed to, show this text--if product b is subscribed to, show this text.

    This is a bit trickier because the user can be subscribed to more than 1 product. The way I display product specific content is to edit the member.html file Additional URLs section (after adding an additioanl url to the product):
    {foreach from=$p.add_urls item=t key=url}
    {assign var="product_id" value=$p.product_id}

    This is where I'd do the if - then statement.

    David

Share This Page