diff --git a/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php b/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php index d75e110ae..326754277 100755 --- a/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php +++ b/packages/Webkul/Attribute/src/Repositories/AttributeRepository.php @@ -136,7 +136,8 @@ class AttributeRepository extends Repository */ public function getFilterAttributes() { - return $this->model->where('is_filterable', 1)->with('options')->get(); + dd(111); + return $this->model->with(['options', 'translations'])->where('is_filterable', 1)->get(); } /** diff --git a/packages/Webkul/Category/src/Models/Category.php b/packages/Webkul/Category/src/Models/Category.php index 422030fbd..449ff9d40 100755 --- a/packages/Webkul/Category/src/Models/Category.php +++ b/packages/Webkul/Category/src/Models/Category.php @@ -90,6 +90,8 @@ class Category extends TranslatableModel implements CategoryContract 'options' => function ($query) { $query->orderBy('sort_order'); }, + 'translations', + 'options.translations' ]); }