Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

fix(core-plugin): pass filterable fields to vendor product variants query

vholik3a484c80fc5f
diff --git a/packages/core-plugin/src/api/vendor/products/[id]/variants/route.ts b/packages/core-plugin/src/api/vendor/products/[id]/variants/route.ts
index 59be15623..fc6aa82ad 100644
--- a/packages/core-plugin/src/api/vendor/products/[id]/variants/route.ts
+++ b/packages/core-plugin/src/api/vendor/products/[id]/variants/route.ts
@@ -23,6 +23,7 @@ export const GET = async (
fields: req.queryConfig.fields,
filters: {
product_id: req.params.id,
+ ...req.filterableFields,
},
pagination: req.queryConfig.pagination,
})