ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Member module select field - customisation problems

November 16, 2011 5:08am

Subscribe [2]
  • #1 / Nov 16, 2011 5:08am

    koko.pelli

    176 posts

    Hi All,

    Is there a way to control the value output of a select list in the EE member module?

    Quick question regarding the custom member Module fields, I am trying to hook this up with Cartthrob/WorldPay. My client would like the user to create an account via the member module field, allowing them to pre-fill in info such as address, billing address etc, so when they come to purchase, it’s a nice, quick, easy experience.

    In order to do this, I need to create a country select list in the member module, and hook this up to the select list provided by the WorldPay payment gateway fields.

    To do this, I need the values to be the same, but the issue I am having is, the value fields are automatically generated in the member module.

    From WorldPay, the code for the country select list is as follows:

    <select name=“country_code”  id=“country_code” class=“required”>
      <option value=“AFG”>Afghanistan</option>
      <option value=“ALA”>Åland Is.</option>
      <option value=“ALB”>Albania</option>
      <option value=“DZA”>Algeria</option>
      <option value=“ASM”>American Samoa</option>


    ...etc

    I can’t replicate the above list because the ExpressionEngine select list option only allows you to specify the option, the value is automatically assigned..

    Is there a way to control the value output of a select list in the EE member module?

    Many thanks
    Simon

  • #2 / Nov 16, 2011 5:49pm

    Dan Decker

    7338 posts

    Hi koko.pelli,

    For something like this, you might consider looking at either Solspace’s User. It allows you to take EE member templates out of the confines of the specialty templates and into regular EE templates. What that will allow you to do is write your select list on the member registration page however you like, and the value can be stored in the Member module inside a standard text input. Does that make sense? Let me know if you have any questions about that.

    Thanks!

  • #3 / Nov 16, 2011 5:59pm

    koko.pelli

    176 posts

    Hi Dan,

    The problem with that is that it’s another $99 and the budget is incredibly tight on this project. I am already working beyond the scope of the budget so I really can’t afford to spend more on this unless I have to.

    Is there no way to customise the Member Module select values?

    Thanks again,
    Simon

  • #4 / Nov 18, 2011 4:36pm

    Dan Decker

    7338 posts

    Hi koko.pelli,

    I’m sorry, but I’m afraid not. In my testing, the Select’s value is what you input in the preference and it’s name in the registration form is the abstracted name of the field in the database. I can certainly sympathize with not wanting to pile on the cost of add-ons. What you’re asking for sounds like an excellent Feature Request.

    Is there anything else I can assist you with?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases