Add Required fields in booking details

Discuss everything related to PHP Hotel Site. All versions. Any questions related to the PHP Hotel Site developing or using should be posted to this forum.

Moderator: alexandrleonenko

alfonsogomez
Newbie
Newbie
Posts: 6
Joined: Mar 24th, '16, 08:12

Add Required fields in booking details

Postby alfonsogomez » Mar 24th, '16, 08:18

I need to ask about tax identification number of our customers as a required field. How can I do it?

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: Add Required fields in booking details

Postby ne_moj » Mar 25th, '16, 08:23

Hello

If you want to add a new field when registering customer (I understood correctly?), You need:
1) Add new field on the registration page (changes in the file "customer/create_account.php")
2) Make a field test for the correct value (changes in the file "customer/handlers/handler_create_account.php")
3) Add a new column in the table "<DB_PREFIX>customers"
4) Add a new constants (if you use them in steps 1 and/or 2) in the table "<DB_PREXIX>vocabulary"
5) Make show of the new field in the admin panel, but this is a separate issue.

alfonsogomez
Newbie
Newbie
Posts: 6
Joined: Mar 24th, '16, 08:12

Re: Add Required fields in booking details

Postby alfonsogomez » Mar 26th, '16, 09:07

Thanks. At the moment I have made changes to use "last name" as TAX identification number.

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: Add Required fields in booking details

Postby ne_moj » Mar 28th, '16, 08:36

Wow, this is also a good!


Return to “ApPHP HotelSite / uHotelBooking Talk {developers/users}”