App reviews, troubleshooting, and recommendations
I can get the Product Type using the GraphQL API from `Product.productType`, but I can't find any documentation on how to get the Product Category. Could someone guide me in the right direction? Thanks!
Solved! Go to the solution
This is an accepted solution.
This should help
https://shopify.dev/api/admin-graphql/2022-10/objects/ProductCategory
Go in via
{
product(id: "") {
productCategory {
productTaxonomyNode {
...
}
}
}
}
Also, this is only available on the 2022-10 (and later) api.
This is an accepted solution.
This should help
https://shopify.dev/api/admin-graphql/2022-10/objects/ProductCategory
Go in via
{
product(id: "") {
productCategory {
productTaxonomyNode {
...
}
}
}
}
Also, this is only available on the 2022-10 (and later) api.
Thank you! If anyone is getting null returned from this, be sure to click the tick icon on Product Category to actually accept it.
Hi,
I would need to retrieve the product category with the Products endpoint using the REST API.
Is this planned to be added anytime soon?
Thank you.
This is available for GraphQL. Can you please help me with the REST API mechanism to get the product category
But it's not available via the Storefront GraphQL API?!
I need to pass the category into useServerAnalytics in my Hydrogen app.
G
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023