Skip to content

Query products by metafield value not working/filtering #139

Discussion options

You must be logged in to vote

Hey @charle-connoringold couple of things to review.

  • Check that for the variant metafield filter the case of the namespace and key in the filter are correct. If these metafields were created with a definition in the admin or API they should be lower case. If the case is wrong it will be as though the filter was not applied.
  • In your results you're highlighting a product metafield. Do you have a similar metafield defined at the product and variant level? Since you're filtering by variant metafield, seeing what is displayed for the variant metafield in the results would be worth checking as well.

Replies: 8 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by charle-connoringold
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dnpg
Comment options

Comment options

You must be logged in to vote
1 reply
@charle-connoringold
Comment options

Comment options

You must be logged in to vote
4 replies
@johncraigcole
Comment options

@sk29110
Comment options

@johncraigcole
Comment options

@johncraigcole
Comment options

Comment options

You must be logged in to vote
4 replies
@johncraigcole
Comment options

@hendrik244
Comment options

@johncraigcole
Comment options

@hendrik244
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
7 participants