How to remove fields from location, like zip code

  • Rupert Griffiths
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago - 9 years 4 months ago #74168 by Rupert Griffiths
How to remove fields from location, like zip code was created by Rupert Griffiths
Thanks for the great component!

I do not need zip code or state as they are not used in my country. How can I remove these from the location entry form. Also, I may not use the map, so I probably don't need the cordinates for longitute and latitude which dont' seem to work in any case

Thanks
Last edit: 9 years 4 months ago by Rupert Griffiths.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
9 years 4 months ago #74169 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to remove fields from location, like zip code
Hi Rupert

Go to Events Booking -> Custom Fields, the unpublish the fields you don't want.

After that, it won't be showed on registration form anymore

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Rupert Griffiths
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #74170 by Rupert Griffiths
Replied by Rupert Griffiths on topic How to remove fields from location, like zip code
Hi Tuan,

These fields are unpublished already. I am not talking about registration location, I am talking about adding event locations.

Thanks very much

Please Log in or Create an account to join the conversation.

  • Rupert Griffiths
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #74212 by Rupert Griffiths
Replied by Rupert Griffiths on topic How to remove fields from location, like zip code
I figured it out - no problem. Thanks

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
9 years 4 months ago #74235 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to remove fields from location, like zip code
Great. Sorry for could not answer you earlier. I was too busy in the last two days

For someone has same requirement, you will need to edit the code to remove the fields you don't want :

1. For location creation from frontend, the file need to be modified is components/com_eventbooking/view/location/tmpl/form.php

2. For backend location creation, the file is administrator/components/com_eventbooking/view/location/tmpl/default.php

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc