remove lishniy productstan

This commit is contained in:
merdan 2022-05-19 17:13:14 +05:00
parent 1550224413
commit ea1e488fbf
1 changed files with 2 additions and 2 deletions

View File

@ -53,10 +53,10 @@ class FilterOptions extends \Webkul\RestApi\Http\Controllers\V1\Shop\ResourceCon
}
if($category = $request->input('category')){
$query->rightJoin('product_attribute_values',function ($q) use ($request){
$query->lefttJoin('product_attribute_values',function ($q) use ($request){
$q->on('product_attribute_values.integer_value','=','attribute_options.id')
->where('product_attribute_values.attribute_id',$request->get('attribute_id'));
})->leftJoin('product_categories',function ($q) use($category){
})->rightJoin('product_categories',function ($q) use($category){
$q->on('product_categories.product_id','=','product_attribute_values.product_id')
->where('product_categories.category_id',$category);
});