Get all the products /products.json API except one

Solved
khernan
New Member
3 0 0

Hi All:

 

I'm developing a function that retrieves all the products from shopify from the API json

my problem is that i want to avoid an specific product_type 

I want to do something like : 

'products.json?product_type!=bundle
is there a way that i can do this ?
 
thanks!
0 Likes
HunkyBill
Shopify Expert
4509 46 492

This is an accepted solution.

There are only two practical ways to do what you want, as far as I know. One, is you are using Storefront API token to get your product listing. With that, just avoid putting bundle products in your listing. Problem Solved.

The second way, is you are using a back-end API, either Rest or GraphQL. In both cases, you can download products to your App, and in your App you'd filter out bundle products. No sweat. Problem solved.

So there you go. The two methods with two solutions.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com