Advertisement
Guest User

Attribute.php (Gala BrandStore)

a guest
Aug 8th, 2013
801
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement