This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Removing countries in address field


  1. TFteam
    Member

    I am wondering if there is a way to remove all countries but US and Canada in the address field. I noticed that there is an option to select 'default country' but I rather just have them hidden or removed to avoid further trouble and confusion. Please advise. Thanks.

    Posted 11 years ago #
  2. Fa
    Member

    Hi, i had to look for the countries because i wanted to alter those mentioned at the top so i can suggest you to look in view-functions.php and search for mf_get_country_list; there you will see the countries into 2 php arrays.
    One option would be to comment all the countries but the 2 you want; or to modify in mf_display_address the use of $country.

    Posted 11 years ago #
  3. TFteam
    Member

    Perfect! Thanks alot.

    Posted 11 years ago #
  4. TFteam
    Member

    I just realized that it doesnt seem to really work for some reason. Is there anyway to do this? Thanks.

    Posted 11 years ago #
  5. yuniar

    What error did you get?


    MachForm Founder

    Posted 11 years ago #

RSS feed for this topic

Reply