简体   繁体   中英

Create “custom” Customer attributes in registration of Magento 1.7.0.2

I want to create some Custom Customer Attributes (like " company ", or " prefered color ") during the registration of a new customer in my web shop Magento 1.7.0.2

I have found an extension that creates custom attributes for customer, customer address and category. Hwg_Attributemanager-0.3.0

But it has a major problem ...It doesnt show the textfields on the front-end. (some users working 1.7.0.2 verified that happened to them)

Does anybody know a similar stable extension for 1.7.0.2 Magento for creating custom attributes for customer during registration?

There is a table called customer_form_attribute . That one decides what attributes are shown on which forms. You need to add a record to the table with your attribute. Let's say that your new attribute has the id '25'. You need to add these lines in the table I mentioned.

form_code              |attribute_id
customer_account_create|25
customer_account_edit  |25
adminhtml_customer     |25
checkout_register      |25

The last line is not important. If you add it it will show the attribute when registering during checkout.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM