Open eriksachse opened 2 years ago
Hi Erik,
Getting this kind of of location information seems much more complicated and requires many requests : https://shopify.dev/api/admin-rest/2022-01/resources/inventorylevel#top
Again, and related to other issues, using GraphQL would help for this : https://community.shopify.com/c/shopify-apis-and-sdks/getting-all-inventorylevels-for-location-with-graphql/m-p/639851
I still couldn't find time to rework the plugin using GraphQL instead and maybe with the new official php lib : https://github.com/Shopify/shopify-php-api
Plugin works great! But I wonder how I can access the inventoryLevel and plug the location of the product. The first thing that came to my mind is to expand the possible products inside
shopify.products.php
with a location string, but that didn't work.My next idea was to check
product.structured-data.php
to see if I can create my own hook, but I don't even know how to access the inventoryLevel, or even which function with which string. Has anyone more intel to this?