Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Attribute.php (Gala BrandStore)

By: a guest on Aug 8th, 2013  |  syntax: None  |  size: 0.48 KB  |  hits: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. class EM_Galabrandstoresettings_Model_System_Config_Source_Attribute
  3. {
  4.         /**
  5.      * Options getter
  6.      *
  7.      * @return array
  8.      */
  9.     public function toOptionArray()
  10.     {
  11.                 $attributes = Mage::getSingleton('catalogsearch/advanced')->getAttributes();
  12.                 $result = array();
  13.                 foreach($attributes as $attribute){
  14.                         $result[] = array(
  15.                                 'value' =>      $attribute->getAttributeCode(),
  16.                                 'label' =>      $attribute->getStoreLabel()
  17.                         );
  18.                 }
  19.                 return $result;
  20.     }
  21. }
  22. ?>