Where I can update the country list?

Discussion in 'aMember Pro v.4' started by th3gov, Jan 21, 2013.

  1. th3gov

    th3gov aMember Pro Customer

    Joined:
    Aug 8, 2012
    Messages:
    14
  2. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    They are listed in the database. Table 'am_country'
    th3gov likes this.
  3. th3gov

    th3gov aMember Pro Customer

    Joined:
    Aug 8, 2012
    Messages:
    14
    Thanks, but how can I now move United States to U and Canda to C.
    I don't want to have United States and Canda in the first position of my list :|
  4. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    The database table contains 8 columns, one of which is the tables ID one 'country_id' which I cannot envisage aMember (uses since any changes to the table during any update might cause problems) but even if it did your own copy of the table would contain them also, still linked to the correct country.

    This would mean that there should be no problem creating your own version of this table, using a simple mySQL query to copy each row of the existing table to your own new one. Order the table by 'country'.

    IMPORTANT bit would be to make sure each row is copied over complete with all the rows respective columns.

    The original data for this table is contained in '-----\amember\setup\sql-country.sql but remember your modified table will be overwritten if this file is changed in any future upgrade.

Share This Page