Cannot add new field to the addresses
-
Dear bagisto,
i try to add two fields in the addresses which is 'province' and 'area',
i already add new input fields in the view and add new those two column in the table 'addresses'i also already add the new field into the 'validate()' on this route.
"Webkul\Customer\Http\Controllers\AddressController@update"when i want to save..everything is saved except this two new field..
Am i missing some step ?Edit :
I just realise there's this file..
"packages/Webkul/Customer/src/Database/Factories/CustomerAddressFactory.php"do i need to add that two new field in here also?
Please advice.. -
@otheriz
you can add the more fields in addresses form as mention here https://forums.bagisto.com/topic/1646/lines-in-a-street-address -
It seems only add the field within the 'address' label..the user will be not knowing that they have to input 'province' and 'area' when there's no label..
maybe if we can put the label/classes of the additional field, and the design has some margin like the other field(not stacked on the 'street address' field) would be better..
i still looking for a way to add these two field..
- on table 'addresses' already added two column
- the POST data already shows/send the 'province' and 'area' data (not a null data)
- the update method seem like a normal method "$address->update($data)"
- i debug the $data variable just before the update method and the 'province' and 'area' value was there..somehow the ->update() method didn't insert it into the table field...
I still wondering why..or there's another 'bagisto' configuration for these addresses?
-
@otheriz u need to add those 2 fields in model as well .