Catalog variant isSoldOut
and isLowQuantity
are always false
#4741
Labels
bug
For issues that describe a defect or regression in the released software
Issue Description
The denormalized inventory flags for
isSoldOut
andisLowInventory
are alwaysfalse
for variants in the catalog.Steps to Reproduce
isSoldOut
isfalse
even though it should be truePossible Solution
In
createCatalogProduct.js
functionxformVariant(variant, variantPriceInfo, shopCurrencyCode, variantMedia)
always receivesundefined
for variants.xformVariant
will have to do some additional processing to determine the correct inventory flags and not assume they come from the params.Versions
Node: 10.7.0
NPM: 6.2.0
Meteor Node: 8.11.4
Meteor NPM: 6.4.1
Reaction CLI: 0.29.0
Reaction: 2.0.0-rc.5
Reaction branch: fix-4722-mikemurray-compare-at-price
Docker: 18.06.1-ce
The text was updated successfully, but these errors were encountered: