I want to create a new tab name as "Preference" in customer dashboard and also admin side customer edit page.
I successfully created new tab both side(means Admin and frontend).
Can any one suggest me how to create a two new field and display field in "preference tab" for both side and how i can add, edit field value.
Best Answer
Lifted from:
This is the code for a basic
int
attribute withtext
renderer:The unusual step for adding attributes is the
setData('used_in_forms')
this seems to be unique to customer attributes. Without it, the field won't get rendered, certainly not in the adminhtml anyway. You can see the valid options for this array in thecustomer_form_attribute
database table.In terms of using a
select
with predefined options, this is what you need:And here is a walk-through on using a custom source for your drop-down
Hope this helps,
JD