Skip to content

Commit

Permalink
Merge pull request #199 from naresh-webkul/master
Browse files Browse the repository at this point in the history
fixed issue #198
  • Loading branch information
vivek-webkul authored Jun 30, 2021
2 parents e9b4b9c + 8def2ee commit 1f1037b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/Shop/API/APIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 1f1037b

Please sign in to comment.