diff --git a/src/Http/Controllers/Shop/API/APIController.php b/src/Http/Controllers/Shop/API/APIController.php index b2570ad7..5d35a289 100644 --- a/src/Http/Controllers/Shop/API/APIController.php +++ b/src/Http/Controllers/Shop/API/APIController.php @@ -75,7 +75,7 @@ public function fetchAdvertisementImages() public function fetchAttributes() { $category = app('\Webkul\Category\Repositories\CategoryRepository')->find(request()->get('category_id')); - $attributes = app('\Webkul\Product\Repositories\ProductFlatRepository')->getFilterableAttributes($category, null); + $attributes = app('\Webkul\Product\Repositories\ProductFlatRepository')->getProductsRelatedFilterableAttributes($category); return response()->json([ 'data' => Attribute::collection($attributes),