-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #2811: Cart's Limited Supply status should not hide item title/quantity info #2907
fix #2811: Cart's Limited Supply status should not hide item title/quantity info #2907
Conversation
…ge in the cart, along with the standard item information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected.
The limited supply label doesn't seem to cascade down the variant option. We're assuming that's always been the behavior. I'm making another issue to address that. So this one should be good to fix this bug. Made issue for the variant option behavior here: #2934 |
> | ||
{handleLowInventory(item) && | ||
<div className="badge badge-top badge-low-inv-warning"> | ||
{ i18next.t("cartDrawerItems.limitedSupply", { default: "Limited Supply" }) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer usage of translation component, over importing i18next
where possible:
<Components.Translation i18nKey="cartDrawerItems.limitedSupply" defaultValue="Limited Supply" />
@machikoyasuda you've got pending request changes here |
# Left
badge. It just showsLimited supply
if the Item/Variant has that on the Grid.Limited supply
badges that show up elsewhere, on the grid or the PDP.Limited Supply
toLimited supply
before: No item title, variant title or quantity. Messed up badge.
after: brings back item title, etc. fixes badge.