diff --git a/src/controllers/ProductsController.php b/src/controllers/ProductsController.php index e5623f3..1101f9f 100644 --- a/src/controllers/ProductsController.php +++ b/src/controllers/ProductsController.php @@ -434,7 +434,7 @@ private function _rawProductEntryToVariantArray(Entry $rawProduct, $default = fa 'optionValueOrName' => $formattedOptionValues ?: $rawProduct->vendProductVariantName, 'parentProductId' => $rawProduct->vendProductVariantParentId, 'default' => $default, - 'hasUnlimitedStock' => !$productJson['has_inventory'], + 'hasUnlimitedStock' => ($productJson['has_inventory'] ? '0' : '1'), 'inventory' => $rawProduct->vendInventoryCount, 'formattedOptionNames' => $formattedOptionNames, 'formattedOptionValues' => $formattedOptionValues, @@ -503,4 +503,4 @@ private function _updateInventoryInline(Entry $entry) } } -} \ No newline at end of file +}