Remove Not Needed Countries

  • zoomlanski
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 1 month ago #6083 by zoomlanski
Remove Not Needed Countries was created by zoomlanski
Hi

I'm happy to be here. Nice componenent. Simple to use overall

How do I removed unwanted countries in the registration form?

I only need 1 (one) country, not the whole drop down list

Is it possile to set it up for only 1 country default selection?

Thank you
Tim

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

More
14 years 1 month ago #6094 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Remove Not Needed Countries
Hi Tim

You can set the country you want to be selected by default by loging in to administrator area of your site, go to Event Booking -> Configuration, then look at Default Country config option and set it to the country you want .

In case you want to remove all other countries from the dropdown, please submit a support ticket contains administrator account of your site and the country you want to keep. I will remove all other countries.

Thanks,

Tuan

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

  • zoomlanski
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 1 month ago #6095 by zoomlanski
Replied by zoomlanski on topic Re: Remove Not Needed Countries
I set the default country already

I don't mind doing it myself, if you want provide me to the file I need to edit.
Is it part of the component or is pulling the country list from a default list elsewhere?

Thanks for the quick replies. I heard this component was well supported

There is a spelling error on this page test.paramediccompetition.ca/register/lu...istration&event_id=2

It says "leave the usernamd and " --- it's got a D instead of an E

Thanks
Tim

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

More
14 years 1 month ago #6097 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Remove Not Needed Countries
Hello Tim

As I said, the countries are stored in a database table called t0r4j_eb_countries. To remove all other countries, you can simply access to database of your site (via phpmyadmin), then run this sql command
Code:
DELETE FROM t0r4j_eb_countries WHERE name |='THE_COUNTRY_NAME_YOU_WANT_TO_KEEP' ;

Don't forget to replace the text THE_COUNTRY_NAME_YOU_WANT_TO_KEEP with the actual country.

Regarding the wrong text, you can simply go to Event Booking -> Translation, find and change the text you want . I will check the download package and update the text soon, too :) .

Hope this help !

Tuan

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

  • zoomlanski
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 1 month ago #6100 by zoomlanski
Replied by zoomlanski on topic Re: Remove Not Needed Countries
Perfect. I can do that.

Thank you!

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

More
14 years 1 month ago #6101 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Remove Not Needed Countries
Sorry

Wrong account entered. The correct one is
Code:
DELETE FROM t0r4j_eb_countries WHERE name !='THE_COUNTRY_NAME_YOU_WANT_TO_KEEP' ;

Thanks,

Tuan

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

Moderators: Tuan Pham Ngoc