In Part-132 of E-com Series, we will continue working on color filters.
1) Update filter function :-
Update filter function at ProductsController where we will get colorFilter array with all colors checked by user and make colorUrl string that we will pass in listing url. We will use hyphen (-) to separate multiple colours selected by user.
2) Update products function :-
Now update products function to get colors from filters and get products according to that and return to listing page with updated results.
3) Add Header Statements :-
Add below header statement at the top of ProductsController :-
use Illuminate\Support\Facades\Redirect;
4) Update front_sidebar.blade.php file :-
Update front sidebar once again to update color filters to select the color filters that user checked.
Now check in video, color filter must work fine.
We are going to update this color filter in a better way in next video.
Thanks for watching :)