Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7074997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:07:28+00:00 2026-05-28T06:07:28+00:00

Our client wants to add an ‘Industry’ dropdown to customer registration. We have created

  • 0

Our client wants to add an ‘Industry’ dropdown to customer registration. We have created a new customer attribute, ‘industry’ and entered in the appropriate values.

It was not showing on the front-end. I looked into customer/form/register.phtml and it wasn’t calling anything for attributes, so I pulled from enterprise/default/template/customer/form/register.phtml the following:

<?php $customerAttributes = $this->getChild('customer_form_user_attributes');?>
<?php if ($customerAttributes): ?>
    <?php $customerAttributes->setShowContainer(false);?>
    <?php $this->restoreSessionData($customerAttributes->getForm());?>
    <?php echo $customerAttributes->toHtml()?>
<?php endif;?>

And then I added in the .xml update found in ‘enterprise/layout/customer.xml’:

<remove name="right"/>
<remove name="left"/>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<block type="page/html_wrapper" name="customer.form.register.fields.before"     translate="label">
<label>Form Fields Before</label>
<!--action method="setMayBeInvisible"><value>1</value></action-->
<action method="setElementClass"><value>rewards</value></action>
</block>
<block type="enterprise_customer/form" template="customer/form/userattributes.phtml" name="customer_form_user_attributes">
<action method="setFormCode"><code>customer_account_create</code></action>
<action method="setEntityModelClass"><code>customer/customer</code></action>
</block>
<block type="enterprise_customer/form" template="customer/form/userattributes.phtml" name="customer_form_address_user_attributes">
<action method="setFormCode"><code>customer_register_address</code></action>
<action method="setEntityModelClass"><code>customer/address</code></action>
</block>
<reference name="content">
<block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
    <action method="append"><block>customer.form.register.fields.before</block>          <alias>form_fields_before</alias></action>
    <action method="append"><block>customer_form_user_attributes</block>    </action>
    <action method="append">    <block>customer_form_address_user_attributes</block></action>
</block>
</reference>
<update handle="customer_form_template_handle"/>

At this point, the attributes are not visible on the front-end. If I perform:

<pre>
<?php print_r($customerAttributes->getUserDefinedAttributes()) ?>
</pre>

I am returned the array of attributes as I would expect. What am I missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:07:29+00:00Added an answer on May 28, 2026 at 6:07 am

    Found it. Needed this stuff in customer.xml. For some reason using the enterprise/default customer.xml wasn’t working, but I added this in and it was good.

    <customer_form_template_handle>
        <reference name="content">
            <block name="customer_form_template" type="enterprise_customer/form_template">
                <action method="addRenderer">
                    <type>text</type>
                    <renderer_block>enterprise_customer/form_renderer_text</renderer_block>
                    <template>customer/form/renderer/text.phtml</template>
                </action>
                <action method="addRenderer">
                    <type>textarea</type>
                    <renderer_block>enterprise_customer/form_renderer_textarea</renderer_block>
                    <template>customer/form/renderer/textarea.phtml</template>
                </action>
                <action method="addRenderer">
                    <type>multiline</type>
                    <renderer_block>enterprise_customer/form_renderer_multiline</renderer_block>
                    <template>customer/form/renderer/multiline.phtml</template>
                </action>
                <action method="addRenderer">
                    <type>date</type>
                    <renderer_block>enterprise_customer/form_renderer_date</renderer_block>
                    <template>customer/form/renderer/date.phtml</template>
                </action>
                <action method="addRenderer">
                    <type>select</type>
                    <renderer_block>enterprise_customer/form_renderer_select</renderer_block>
                    <template>customer/form/renderer/select.phtml</template>
                </action>
                <action method="addRenderer">
                    <type>multiselect</type>
                    <renderer_block>enterprise_customer/form_renderer_multiselect</renderer_block>
                    <template>customer/form/renderer/multiselect.phtml</template>
                </action>
                <action method="addRenderer">
                    <type>boolean</type>
                    <renderer_block>enterprise_customer/form_renderer_boolean</renderer_block>
                    <template>customer/form/renderer/boolean.phtml</template>
                </action>
                <action method="addRenderer">
                    <type>file</type>
                    <renderer_block>enterprise_customer/form_renderer_file</renderer_block>
                    <template>customer/form/renderer/file.phtml</template>
                </action>
                <action method="addRenderer">
                    <type>image</type>
                    <renderer_block>enterprise_customer/form_renderer_image</renderer_block>
                    <template>customer/form/renderer/image.phtml</template>
                </action>
            </block>
        </reference>
    </customer_form_template_handle>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have created an iPhone app which our client wants to show on a
We have to build an event registration website for our client in ASP.NET using
Our client wants to support both SQL Server and Oracle in the next project.
This could quite possibly be the dumbest question ever asked. Our client wants us
Our client's request is to have tables in PDF with rounded corner. I only
Our client is using Microsoft CRM 2011 outlook client and they have a unique
We have a C# client app that communicates to our C# backend service via
We have a test WCF client hooked up to our application that parses xml
I have current PHP codebase written in procedural (mainly) style that our client is
We have a weird error/problem in our CRM 2011. When we add a Quote

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.