get products split in groups and as dropdown lists in signup

Discussion in 'Templates customization' started by medix, Dec 17, 2008.

  1. medix

    medix New Member

    Joined:
    Dec 17, 2008
    Messages:
    9
    hi,

    Does somebody k know how to get product groups displayed as separate dropdown lists on the signup page? in other words, how to get each one displayed individually. The code for getting each newsletter thread separately in the signup would be also useful.

    I found this code


    Code:
    <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}
    </option>
    {/foreach}
    
    But it displays all products in the same list which i dont want.

    I would appreciate your prompt answer.

    Thank you.
  2. medix

    medix New Member

    Joined:
    Dec 17, 2008
    Messages:
    9
    I kinda figure out the first thing

    Code:
    <tr>
        <th>Product group 0</th>
    
    <td><select name=product_id size=1>
    {foreach from=$products item=p}
    {if $p.price_group eq "0"}<option value="{$p.product_id}">
    {$p.title}
    </option>{/if}
    {/foreach}
    </select></td>
    
    </tr>
    test it to see if it works for you. Now i just need the newsletter thread one.
  3. kenada

    kenada New Member

    Joined:
    Mar 24, 2008
    Messages:
    14
    What about if you wanted it to be radio buttons or check boxes?
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Enable amember CP -> Setup -> Advanced -> Allow to select multiple products
    Checkboxes will be used instead of select then.

Share This Page