コード例 #1
0
ファイル: Configurable.php プロジェクト: natxetee/magento2
 /**
  * Check attribute availability for super product creation
  *
  * @param  Mage_Catalog_Model_Resource_Eav_Attribute $attribute
  * @return bool
  */
 public function canUseAttribute(Mage_Catalog_Model_Resource_Eav_Attribute $attribute)
 {
     return $attribute->getIsGlobal() == Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL && $attribute->getIsVisible() && $attribute->getIsConfigurable() && $attribute->usesSource() && $attribute->getIsUserDefined();
 }