You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you search the issue queue for existing issue?
Issue Description
As an admin, when creating a new product, the backorder badge is applied incorrectly. As seen in this image, the backorder badge is visible on the variant while the quantity is > 0. It seems that the backorder badge is being applied when the low inventory badge should be applied as an admin.
The backorder badge is also applied incorrectly on the consumer view of the PDP:
This seems to happen when viewing a product where the allow backorder toggle is enabled and the Quantity is <= the number provided in the Warn at input on the PDP.
The Admin Product Grid displays the correct badge
The new catalog based product grid displays most badges correctly, but when Allow backorder is enabled, the Low inventory badge never displays. This is incorrect. The Low inventory badge should always show when the quantity is greater than 0, but less than or equal to the warn at number.
When the quantity is equal to 0, the badge shown should be Backorder if Allow backorder is enabled, or Sold out if not.
Steps to Reproduce
Please provide starting context, i.e. logged in as a user, configure a particular payment method.
Create a product
Set the Quantity to 5
Set the warn at number to 5
Ensure that Allow backorder is enabled
Possible Solution
My best guess is that we're not using the same logic/helper to determine which badge is shown in all spots. We should probably have a single component that calculates which badge is shown so that it's consistent and correct across the app.
Prerequisites
Issue Description
As an admin, when creating a new product, the backorder badge is applied incorrectly. As seen in this image, the backorder badge is visible on the variant while the quantity is > 0. It seems that the backorder badge is being applied when the
low inventory
badge should be applied as an admin.The backorder badge is also applied incorrectly on the consumer view of the PDP:
This seems to happen when viewing a product where the
allow backorder
toggle is enabled and theQuantity
is <= the number provided in theWarn at
input on the PDP.The Admin Product Grid displays the correct badge
The new catalog based product grid displays most badges correctly, but when
Allow backorder
is enabled, theLow inventory
badge never displays. This is incorrect. The Low inventory badge should always show when the quantity is greater than 0, but less than or equal to thewarn at
number.When the quantity is equal to 0, the badge shown should be
Backorder
ifAllow backorder
is enabled, orSold out
if not.Steps to Reproduce
Please provide starting context, i.e. logged in as a user, configure a particular payment method.
Quantity
to 5warn at
number to 5Allow backorder
is enabledPossible Solution
My best guess is that we're not using the same logic/helper to determine which badge is shown in all spots. We should probably have a single component that calculates which badge is shown so that it's consistent and correct across the app.
Versions
The text was updated successfully, but these errors were encountered: