#7 Shopify interface does not work

This commit is contained in:
Roland Rusch 2023-07-19 16:51:32 +02:00
parent 51b70aed0d
commit ab4e9f001e

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 = floatval($lageranzahl) - floatval($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,