Fix: Update all Product references from showOnProducts to showAsReadyMade
- Updated src/app/page.tsx to use showAsReadyMade for ready-made products - Updated src/app/products/page.tsx to use showAsReadyMade for product filtering - Updated src/app/products/[slug]/page.tsx to check showAsReadyMade - Category model retains showOnProducts for catalog filtering Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
8fe99d9d35
commit
aa092f80a0
@@ -38,7 +38,7 @@ export default async function ReadyMadeProductsPage({ searchParams }: { searchPa
|
||||
|
||||
// Full palette across ready-made products only, for the swatch filter.
|
||||
const allProducts = await prisma.product.findMany({
|
||||
where: { showOnProducts: true },
|
||||
where: { showAsReadyMade: true },
|
||||
select: { colors: true },
|
||||
});
|
||||
const paletteSet = new Set<string>();
|
||||
|
||||
Reference in New Issue
Block a user