Excluded image swatch attributes from layed navigation

This commit is contained in:
jitendra 2019-03-05 10:53:50 +05:30
parent e099492fd9
commit 70c4e69aaf
1 changed files with 1 additions and 1 deletions

View File

@ -29,6 +29,6 @@ class Attribute extends TranslatableModel implements AttributeContract
*/
public function scopeFilterableAttributes($query)
{
return $query->where('is_filterable', 1)->orderBy('position');
return $query->where('is_filterable', 1)->where('swatch_type', '<>', 'image')->orderBy('position');
}
}