Error click a category in navbar

error in click of a menu

Method Illuminate\Database\Query\Builder::getCategoryProductWithFilter does not exist.

Purvesh had replied 8 months ago

Try to Replace the code in the file called CategoryViewController.php

app/Http/Controllers/CategoryViewController.php

/**
* @param Request $request
* @param $slug
* @return \Illuminate\Http\Response
*/
public function view(Request $request, $slug)
{
  $productsOnCategoryPage = 9;

  $category = $this->repository->findByKey($slug);
  $catProducts = $this->repository->getCategoryProductWithFilter(
           $category->id, 
             $request->except(['page'])
     );
  $products = $this->repository->paginateProducts(
                $catProducts, 
                $productsOnCategoryPage
             );

 return view('category.view')
     ->with('category', $category)
     ->with('params', $request->all())
     ->with('products', $products);
   }

Purvesh had replied 8 months ago

This bug has been fixed in latest release.

thanks for raising the bug.