feat: full symptoms filtering system — backend API, megamenu pills, sidebar server-side filter, PDP tags
This commit is contained in:
1 parent
4676f3a592
commit
6dafe86344
7 files changed
+124
-27
No files matched your search
@@ -85,6 +85,7 @@ export class ProductService {
|
||||
category?: string;
|
||||
petType?: PetType | "all";
|
||||
query?: string;
|
||||
symptom?: string;
|
||||
page?: number;
|
||||
limit?: number;
|
||||
}): Promise<{ data: Product[]; meta: { total: number; page: number; lastPage: number; limit: number } }> {
|
||||
@@ -92,6 +93,7 @@ export class ProductService {
|
||||
if (filters?.category && filters.category !== "all") params.append('category', filters.category);
|
||||
if (filters?.petType && filters.petType !== "all") params.append('petType', filters.petType);
|
||||
if (filters?.query) params.append('search', filters.query);
|
||||
if (filters?.symptom) params.append('symptom', filters.symptom);
|
||||
params.append('page', String(filters?.page || 1));
|
||||
params.append('limit', String(filters?.limit || 12));
|
||||
|
||||
|
||||
Reference in new issue
Block a user