Open vasanthhr opened 3 years ago
@tareqtms Could you please help on this issue sooner, really appreciate for your quick response.
@vasanthhr
As far as I know the rest api cannot search product variant by sku (I know this is crazy)
https://community.shopify.com/c/shopify-apis-and-sdks/api-to-search-products-by-sku/td-p/380758
I tried this
$shoppify->ProductVariant->search("sku:{$sku}")
but it always gives output asUncaught PHPShopify\Exception\ApiException: {"errors":"Not Found"}
even though sku present in inventoryNote: used composer to install latest phpclassic/php-shopify
example:
But I just tried with to get list of products with below APIs then it got list of products :