Hi , hope you all doing good .
I’m getting the list of product, but I want to know in witch collection the product belongs.
I’m using Shopify rest API with Laravel.
Hi , hope you all doing good .
I’m getting the list of product, but I want to know in witch collection the product belongs.
I’m using Shopify rest API with Laravel.
$session = $request->get('shopifySession');
$client = new Rest($session->getShop(), $session->getAccessToken());
$res = $client->get('custom_collections', [], [
'limit' => 250, // max is 250
'product_id' => XXXXXXXX,
'fields' =>['id']
]);
$res = $res->getDecodedBody(); // return type => JsonArray
@ZiedDams Hello I need same requirements, I need to check the product is coming from which collections. any solution.
Thanks