slince / shopify-api-php

:rocket: Shopify API Client for PHP
MIT License
128 stars 47 forks source link

getVariantManager()->find() not working #83

Closed sharaxco closed 3 years ago

sharaxco commented 4 years ago

Hi

i want to use this function for find product with VariantID but not worked.

$credential = new \Slince\Shopify\PrivateAppCredential($ConfVal->key, $ConfVal->password, $ConfVal->shared_secret); $client = new \Slince\Shopify\Client($credential, $ConfVal->url, [ 'metaCacheDir' => './Shopifytmp/'.$ConfVal->key // Metadata cache dir, required ]); dd($client->getVariantManager()->findAll());

Response:

Slince\Di\Exception\NotFoundException There is no definition named "variants"

slince commented 4 years ago

use getProductVariantManager