mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 04:27:14 +01:00
#7 Shopify interface does not work
This commit is contained in:
parent
51b70aed0d
commit
ab4e9f001e
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user