bulgaria_100_1.cif 665 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. function bulgaria_install() {
  3. // Make the entry in the country table.
  4. // VALUES = Country ID, Country Name, 2-digit Code, 3-digit Code, File Version
  5. db_insert('uc_countries')
  6. ->fields(array(
  7. 'country_id' => 100,
  8. 'country_name' => 'Bulgaria',
  9. 'country_iso_code_2' => 'BG',
  10. 'country_iso_code_3' => 'BGR',
  11. 'version' => 1,
  12. ))
  13. ->execute();
  14. // BG has no postal zones in the Ubercart sense
  15. // Set address format
  16. uc_set_address_format(
  17. 100,
  18. "!first_name !last_name\r\n".
  19. "!company\r\n".
  20. "!street1\r\n".
  21. "!street2\r\n".
  22. "!zone_name\r\n".
  23. "!postal_code !city !country_name_if"
  24. );
  25. }