From 8def2eee45ae99b77ed7ded25e58c11112fd8b39 Mon Sep 17 00:00:00 2001 From: naresh verma Date: Fri, 18 Jun 2021 20:26:05 +0530 Subject: [PATCH] fixed issue #198 --- src/Http/Controllers/Shop/API/APIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),