Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hello,
We currently stuck with counting published products in collection.
We tried use ADMIN API
/admin/api/2020-01/collects/count.json?collection_id=12345678
But this way counting all product not published products.
Is there anyway to count with Storefront API or Admin API , Please help
Thank you
Yes, try to add some parameters. Like: &status=ACTIVE
So in your reference:
/admin/api/2020-01/collects/count.json?collection_id=12345678&status=ACTIVE
This worked for me to not count products w/ draft status.