customize sign-up page

Discussion in 'Templates customization' started by eregp, May 13, 2007.

  1. eregp

    eregp New Member

    Joined:
    May 10, 2007
    Messages:
    8
    Hi all,

    I have a couple questions about customizing sign-up page.

    1. If I add more fields on the signup.html, do I also need to add those fields through "Add Fields" on Admin Control Panel?

    2. I have two price group and I want each group access different signup page. How can I do that? I hyperlink to ..../signup.php/price_group=1 or signup.php/price_group=2 but I don't know how to change the signup page. So far both of them link to the same page.

    Could anyone help me please?


    Thanks before
  2. draj

    draj New Member

    Joined:
    Dec 29, 2006
    Messages:
    252
    Hi!
    Until you tell amember about your fields, it would not know about those fields, right. Those extra or additional fields data WILL NOT be inserted in mysql at all, regardless of if it appearing in the form or not.

    So it is NOT you creating the form but amember who would be generating a dynamic signup form. By this, amember scripts knows which are those fields generated and will capture the data from those forms. If you want to have your own sequence or order of form fields of those additional forms, would require your own coding to achieve those field order, which should be not a problem at all for someone having basic knowledge in this regards.

    So you need to create those fields from admin > add additional field. Stupid enough, you will see a possibility to create binary fields and the form javascripts jumps back to creating jacascripts. This is not a bug but not good programming.

    MAKE SURE TO CREATE MYSQL FIELDS AS ADDITIONAL FIELDS (in the Field Type)! This will help you in accessing those fields in queries, updates, ndexing, etc. While editing the names of the newly created field make sure that they remain as sql > SQL field type VARCHAR 255. The javascript design jumps back to smething else sometimes.

    Those fields will automatically appear in your form. Play with the sequence if you want by clicking on Order > Set new order.

    In the Manage product area you will find a link > Signup Link Wizard. Follow the instructions and create a link.

    Place this link in your respective pages and your users ill be signing for that particular product independently.
  3. eregp

    eregp New Member

    Joined:
    May 10, 2007
    Messages:
    8
    adding fields

    Thanks... The price group is done but not the adding fields.

    When I add fields through Admin CP, it added the fields on the page, but I have added those fields through the coding. Is there any way to link the added fields from Admin CP and those on the signup.html?

    Thanks before
  4. draj

    draj New Member

    Joined:
    Dec 29, 2006
    Messages:
    252
    Hi!
    Welcome before.

    Yes, there is a way to link the added fields.

    Delete your coding from signup.html and let amember generate those fields. To make it generate the additional fields, you need to use those tags in the templates which has a reference of additional fields like

    {$additional_fields_html}

    this should be inbetween the html coding and this tags will generate all the additional fields you created in the admin.

    Hope this helps.
  5. eregp

    eregp New Member

    Joined:
    May 10, 2007
    Messages:
    8
    still got problem

    I did deleted my coding but amember doesn't generate those new fields that I've added from Admin CP into signup.html file. If I put {$additional_fields_html} on signup.html, it will double the new fields but doesn't generate any code on signup.html file. Could you help me, please?

    Thanks again
  6. eregp

    eregp New Member

    Joined:
    May 10, 2007
    Messages:
    8
    nevermind... I got it works... however... I have another questions...
    I want to put different template for selected price group... I have put
    {if $smarty.request.price_group eq "1" or "2"}
    this text
    {elseif $smarty.request.price_group eq "3" or "4" or "5" or "6" or "7"}
    other text
    {/if}
    but it always go to the first one eventhough the price group id is not 1 or 2.. but it display the right product depends on the price group id...
    anyone can help me, please?
  7. draj

    draj New Member

    Joined:
    Dec 29, 2006
    Messages:
    252
    Hi!

    I did not work with price groups yet and cannot help.

    But for such a different question, I would advice to open a new thread. Threads like this heps other users. So it may well be that I may be looking at your new thread in the future. If the discussions and follow ups follows like now, they remain burried under something else...
  8. ronniead

    ronniead Member

    Joined:
    Dec 20, 2007
    Messages:
    118

Share This Page