Show additional fields IF subscribed to appropriate membership

Discussion in 'Customization & add-ons' started by kinitex, Mar 15, 2010.

  1. kinitex

    kinitex Member

    Joined:
    Aug 28, 2009
    Messages:
    50
    Ok my site sells 4 different packages.

    Package #1 = limited to 1 account (so on their profile page, 1 additional field to enter their account number is visible)

    Package #2 = limited to 2 accounts (so on their profile page, 2 additional fields to enter their account numbers is visible)

    Package #3 = limited to 3 account s(so on their profile page, 3 additional fields to enter their account numbers is visible)

    Package #4 = limited to 4 accounts (so on their profile page, 4 additional fields to enter their account numbers is visible)

    So right now I have the following code on the profile.html template page.

    PHP:
    {if $smarty.session._amember_products}
    {
    $additional_fields_html}
    {else}
    <
    tr>
        <
    th>Account Number</th>
        <
    td>You must have an active account to use this feature!</td>
    </
    tr>
    How do I make it so if they are subscribed to package 1, only 1 field shows, if they are subscribed to package 4, all 4 fields are shown?
  2. kinitex

    kinitex Member

    Joined:
    Aug 28, 2009
    Messages:
    50
    Thanks for the help, I figured this one out on my own.

Share This Page