Adding some profile information

Uber for X - Dog Walker
agaznai
Posts: 1
Joined: Tue Nov 03, 2015 1:09 am

Adding some profile information

Postby agaznai » Thu Nov 26, 2015 3:02 pm

Hi,

I am trying to add city, state, and country to the profile page of the Android application and also allow the zip code to input text characters for postal codes. Could you please tell me what are the functions and classes that will be impacted to do such a change?

I tried allowing text characters on the provider application profile page but now it will give an error message when trying to update the profile. Could you tell me where is the code that restricts the zip code to only numbers?

Thank you
Best regards,
Abdullah

Divyang Metaliya
Posts: 130
Joined: Mon Sep 21, 2015 6:15 am

Re: Adding some profile information

Postby Divyang Metaliya » Wed Mar 23, 2016 11:04 am

hello,

For this error solution,

in WalkerController.php files

public function update_profile()
$validator = Validator::make(
array(
'token' => $token,
'walker_id' => $walker_id,
'picture' => $picture,
'zipcode' => $zipcode,
'type' => $type
), array(
'token' => 'required',
'walker_id' => 'required|integer',
/* 'picture' => 'mimes:jpeg,bmp,png', */
'picture' => '',
'zipcode' => 'integer',
'type' => 'required'
)
);


to just change 'zipcode' => 'integer', to 'zipcode' => 'required',

so you can add letters and digits which you want ...

Thanks...

Divyang Metaliya
Posts: 130
Joined: Mon Sep 21, 2015 6:15 am

Re: Adding some profile information

Postby Divyang Metaliya » Wed Mar 23, 2016 11:47 am

Hello
Check your activity_profile.xml file in res folder.


Return to “Uber for Dog Walker”

Who is online

Users browsing this forum: No registered users and 1 guest