commerce icon indicating copy to clipboard operation
commerce copied to clipboard

Show all products in collection from useSearch hook

Open jonrrivera opened this issue 2 years ago • 2 comments

Hi All,

I am looking to show all the products within a collection. Currently using the out of the box useSearch hook. But looking to show all products similarly to

commerce.getAllProducts({ variables: { first: 1 }, config, preview, })

would love any help, thanks!!

jonrrivera avatar Jun 07 '22 22:06 jonrrivera

I wonder what you mean by a "collection": product category or brand (designer)?

drugan avatar Jul 22 '22 08:07 drugan

Product category I assume. I have the same question :)

DennisKraaijeveld avatar Aug 14 '22 08:08 DennisKraaijeveld

Hey there! Thank you for your contribution. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: https://github.com/vercel/commerce/pull/966

leerob avatar Apr 18 '23 02:04 leerob