Hi,
Kindly help me on adding new fields in customer signup form.
At present customer sign-up form is asking only 1) First name 2) Last name 3) Email address for creating new customer.
Now we need to add few more fields like 1) Phone Number 2) Manger Name 3) Address .
Kindly help me how to achieve this requirement .
Adding New fields in Customer Signup form
Moderator: crythias
-
- Znuny newbie
- Posts: 9
- Joined: 23 Aug 2011, 13:11
- Znuny Version: 3.0.8
- Real Name: santhosh kumar chirunomula
- Company: Infosys
-
- Znuny newbie
- Posts: 9
- Joined: 23 Aug 2011, 13:11
- Znuny Version: 3.0.8
- Real Name: santhosh kumar chirunomula
- Company: Infosys
Re: Adding New fields in Customer Signup form
i have implemented this requirement.
here i am sharing solution approach.
for adding phone number did below steps
1) open the "otrs\Kernel\Output\HTML\standard\CustomerLogin.dtl
and add the added below code in create sign-up area,
<div class="NewLine">
<label for="Phone">$Text{"Phone{CustomerUser}"}</label>
<input title="$Text{"The User Phone number"}" name="Phone" type="text" id="Phone" maxlength="18" value="$QData{"UserPhone"}" class="W100pc"/>
</div>
2) open the "\otrs\Kernel\System\Web\InterfaceCustomer.pm"
UserPhone => $GetParams{UserPhone},
added the above entries in two places, one place is
Get user data and other place is create account
-----------------------------------------------------------
if you want to add new column that is not exist in customer_user table, do the following steps
3) created new column in customer_user table.
4) add the entry in "\otrs\Kernel\Language\en.pm"
added below entry in customeruser section
'Manager{CustomerUser}' => 'Manager Name',"
5) map the new column in config file
\otrs\Kernel\Config\Defaults.pm
add the below entry
"Map below entry in self(customer) section
[ 'UserManager', 'manager', 'Manager_Name', 1, 0, 'var', '', 0 ],"
and follow the steps one and two
here i am sharing solution approach.
for adding phone number did below steps
1) open the "otrs\Kernel\Output\HTML\standard\CustomerLogin.dtl
and add the added below code in create sign-up area,
<div class="NewLine">
<label for="Phone">$Text{"Phone{CustomerUser}"}</label>
<input title="$Text{"The User Phone number"}" name="Phone" type="text" id="Phone" maxlength="18" value="$QData{"UserPhone"}" class="W100pc"/>
</div>
2) open the "\otrs\Kernel\System\Web\InterfaceCustomer.pm"
UserPhone => $GetParams{UserPhone},
added the above entries in two places, one place is
Get user data and other place is create account
-----------------------------------------------------------
if you want to add new column that is not exist in customer_user table, do the following steps
3) created new column in customer_user table.
4) add the entry in "\otrs\Kernel\Language\en.pm"
added below entry in customeruser section
'Manager{CustomerUser}' => 'Manager Name',"
5) map the new column in config file
\otrs\Kernel\Config\Defaults.pm
add the below entry
"Map below entry in self(customer) section
[ 'UserManager', 'manager', 'Manager_Name', 1, 0, 'var', '', 0 ],"
and follow the steps one and two