slince / shopify-api-php

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

setTracked doesnt work :( #109

Open franciscocp123 opened 2 years ago

franciscocp123 commented 2 years ago

setTracked doesnt work :(

$product=99999999999; // example, it is not valid product, need to put a valid inventory id $client->getInventoryItemManager()->find($product)->setTracked(false); echo $client->getInventoryItemManager()->find($product)->isTracked();

result-> 1

franciscocp123 commented 2 years ago

SOLVED:

$product = $client->getProductVariantManager()->update(9999999999, array( "inventory_management" => "shopify" // OR NULL ));