Skip to content

Commit

Permalink
Changing variant hasUnlimitedStock value to be 0 or 1 as strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshangell committed May 20, 2021
1 parent 8f2e521 commit d94be87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/ProductsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -503,4 +503,4 @@ private function _updateInventoryInline(Entry $entry)
}
}

}
}

0 comments on commit d94be87

Please sign in to comment.