#7 Shopify interface does not work

This commit is contained in:
Roland Rusch 2023-07-19 16:50:55 +02:00
parent 08579804a8
commit 51b70aed0d

View File

@ -690,7 +690,7 @@ class Shopimporter_Shopify extends ShopimporterBase
$inventoryitemid = $resultv['data']['variant']['inventory_item_id']; $inventoryitemid = $resultv['data']['variant']['inventory_item_id'];
$resulti = $this->adapter->call("inventory_levels.json?inventory_item_ids=$inventoryitemid&location_ids=$locationid"); $resulti = $this->adapter->call("inventory_levels.json?inventory_item_ids=$inventoryitemid&location_ids=$locationid");
$vorhanden = $resulti['data']['inventory_levels'][0]['available']; $vorhanden = $resulti['data']['inventory_levels'][0]['available'];
$adjust = $lageranzahl - $vorhanden; $adjust = floatval($lageranzahl) - floatval($vorhanden);;
if($adjust != 0){ if($adjust != 0){
$data = array("location_id" => $locationid, $data = array("location_id" => $locationid,
"inventory_item_id"=> $inventoryitemid, "inventory_item_id"=> $inventoryitemid,