Exemple #1
0
 /**
  * Check attributes has options and searchable
  *
  * @param \Magento\Catalog\Model\Entity\Attribute $attribute
  * @return boolean
  */
 protected function _hasAttributeOptionsAndSearchable($attribute)
 {
     if ($attribute->getIsSearchable() && in_array($attribute->getFrontendInput(), ['select', 'multiselect'])) {
         return true;
     }
     return false;
 }
 /**
  * Is Attribute Filterable as Term
  *
  * @param \Magento\Catalog\Model\Entity\Attribute $attribute
  * @return bool
  */
 private function isTermFilterableAttribute($attribute)
 {
     return ($attribute->getIsVisibleInAdvancedSearch() || $attribute->getIsFilterable() || $attribute->getIsFilterableInSearch()) && in_array($attribute->getFrontendInput(), ['select', 'multiselect']);
 }