adding drop down selection to signup page

Discussion in 'Templates customization' started by seniorrs, Oct 9, 2004.

  1. seniorrs

    seniorrs Guest

    I'd like to change the membership selection choices from a radio button to a drop down selection as I have over 50 memberships and Im trying to conserve space on the web page.

    I cant figure out how to customize the signup.html page.

    Any help?
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    done by the support request.
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    here is solution explained:

    edit file amember/templates/signup.html

    find lines:
    PHP:
        {foreach from=$products item=p
        <
    input type=radio id=product{$p.product_idname=product_id value="{$p.product_id|escape}"
            
    {if $p.product_id == $smarty.request.product_id }checked{/if}
            ><
    label for="product{$p.product_id}"><b>{$p.title} ({if $p.price }{$config.currency|default:"$"}{$p.price}{else}free{/if})</b><br>
            <
    small>{$p.description}</small></label><br><br>
        {/foreach}
    and replace to:
    PHP:
        <select name=product_id size=1>
        {foreach 
    from=$products item=p
            <
    option value="{$p.product_id}
            
    {if $p.product_id == $smarty.request.product_id }selected{/if}>
    {
    $p.title} ({if $p.price }{$config.currency|default:"$"}{$p.price}{else}free{/if})
            </
    option>
        {/foreach}
        </
    select>
  4. basichip

    basichip New Member

    Joined:
    Mar 25, 2007
    Messages:
    22
    Checkboxes, multiple selection

    resolved by Alex. thank you
  5. guylewis

    guylewis Member

    Joined:
    Oct 10, 2005
    Messages:
    56
    Im planning my subscription set up and it looks like I will have around 90 membership choices set up over 15 price groups.

    Does the code change above still work in the latest version of amember? can anyone advise?

    Thank you.

Share This Page