Commit e9e3406
committed
Refactor category filtering in allProducts method of ProductListController
This commit updates the allProducts method to change the way category filtering is handled. It replaces the previous 'category_id' input with 'categories', allowing for a comma-separated string of category IDs to be processed. Additionally, the query now correctly references 'categories.id' for filtering, improving the accuracy of product listings based on selected categories.1 parent 8ebd20e commit e9e3406
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
72 | 69 | | |
73 | | - | |
| 70 | + | |
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
| |||
0 commit comments