mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
Implement Shopify Provider
This commit is contained in:
15
framework/shopify/utils/get-search-variables.ts
Normal file
15
framework/shopify/utils/get-search-variables.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export const searchByProductType = (search?: string) => {
|
||||
return search
|
||||
? {
|
||||
query: `product_type:${search}`,
|
||||
}
|
||||
: {}
|
||||
}
|
||||
|
||||
export const searchByTag = (categoryPath?: string) => {
|
||||
return categoryPath
|
||||
? {
|
||||
query: `tag:${categoryPath}`,
|
||||
}
|
||||
: {}
|
||||
}
|
Reference in New Issue
Block a user