Esempio n. 1
0
 /**
  * Checkin attribute availability for create superproduct
  *
  * @param   Mage_Eav_Model_Entity_Attribute $attribute
  * @return  bool
  */
 public function canUseAttribute(Mage_Eav_Model_Entity_Attribute $attribute)
 {
     $allow = $attribute->getIsGlobal() == Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL && $attribute->getIsVisible() && $attribute->getIsConfigurable() && $attribute->usesSource() && $attribute->getIsUserDefined();
     return $allow;
 }
Esempio n. 2
0
 /**
  * Checkin attribute availability for create superproduct
  *
  * @param   Mage_Eav_Model_Entity_Attribute $attribute
  * @return  bool
  */
 public function canUseAttribute(Mage_Eav_Model_Entity_Attribute $attribute)
 {
     $allow = $attribute->getIsGlobal() && $attribute->getIsVisible() && $attribute->getIsConfigurable() && $attribute->usesSource();
     return $allow;
 }