Skip to content

Commit

Permalink
Update ProductsFilter.php
Browse files Browse the repository at this point in the history
Added extra where for filtering on the published state of products.
  • Loading branch information
RickAcb authored Nov 27, 2024
1 parent d508625 commit 78bdc4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/ProductsFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ protected function setPriceRange()
protected function setBrands()
{
$brands = DB::table('offline_mall_products')
->where('offline_mall_products.published', '=', true)
->whereIn('offline_mall_category_product.category_id', $this->categories->pluck('id'))
->select('offline_mall_brands.*')
->distinct()
Expand Down

0 comments on commit 78bdc4c

Please sign in to comment.