public function run($request)
 {
     $zone = Zone::create();
     $zone->Name = "International";
     $zone->Description = "All countries";
     $zone->write();
     $countries = ShopConfig::current()->getCountriesList();
     foreach ($countries as $code => $country) {
         $zoneregion = ZoneRegion::create(array('ZoneID' => $zone->ID, 'Country' => $code));
         $zoneregion->write();
         echo ".";
     }
 }
 public function populateInternationalZone()
 {
     $zone = Zone::create(array('Name' => 'International'));
     $zone->write();
     if ($countries = SiteConfig::current_site_config()->getCountriesList()) {
         foreach ($countries as $iso => $country) {
             $region = ZoneRegion::create(array('Country' => $iso, 'ZoneID' => $zone->ID));
             $region->write();
         }
     }
 }