Example #1
0
 public function render(Varien_Object $row)
 {
     if (($rows = $row->getRows()) && is_array($rows)) {
         $regionCodes = array();
         foreach ($rows as $row) {
             $regionCodes[] = $row['country_id'] . ': ' . ($row['region_id'] ? @implode(',', $row['region_codes']) : '*');
         }
         return implode("<br />", $regionCodes);
     }
     return null;
 }
Example #2
0
 public function render(Varien_Object $row)
 {
     if (($rows = $row->getRows()) && is_array($rows)) {
         $postCodes = array();
         foreach ($rows as $row) {
             $postCodes[] = $row['country_id'] . ': ' . ($row['postcode'] ? $row['postcode'] : '*');
         }
         return implode("<br />", $postCodes);
     }
     return null;
 }
Example #3
0
 public function render(Varien_Object $row)
 {
     if (($rows = $row->getRows()) && is_array($rows)) {
         $countryNames = array();
         foreach ($rows as $row) {
             $_name = Mage::app()->getLocale()->getCountryTranslation($row['country_id']);
             $countryNames[] = $_name ? $_name : $row['country_id'];
         }
         $countryNames = implode(', ', $countryNames);
         if (empty($countryNames)) {
             $countryNames = $this->escapeHtml($countryNames);
         }
         return $countryNames;
     }
     return null;
 }