Skip to content
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

Merged
merged 8 commits into from
Sep 29, 2017

Conversation

machikoyasuda
Copy link
Contributor

@machikoyasuda machikoyasuda commented Sep 20, 2017

  • Closes Limited supply label not working correctly in cart.  #2811
  • [ ]: Note: This issue doesn't add a # Left badge. It just shows Limited supply if the Item/Variant has that on the Grid.
  • [ ]: Note ii: This doesn't change the Limited supply badges that show up elsewhere, on the grid or the PDP.
  • Changed Limited Supply to Limited supply
  • Provide us detailed instructions on how we can test your PR:
  1. Created a product with limited supply
  2. Add that product to cart
  3. Open cart
  4. Confirm the item's title, variant title and quantity appears below the image in the cart
  • Design

before: No item title, variant title or quantity. Messed up badge.

screen shot 2017-09-20 at 11 03 17 am

after: brings back item title, etc. fixes badge.
screen shot 2017-09-29 at 10 55 34 am

Machiko Yasuda added 2 commits September 20, 2017 10:55
…ge in the cart, along with the standard item information.
Copy link
Contributor

@rymorgan rymorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected.

@mikemurray
Copy link
Member

Possibly missing limited supply badge when dealing with variant options.

basic_reaction_product

@rymorgan
Copy link
Contributor

rymorgan commented Sep 22, 2017

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" }) }
Copy link
Member

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" />

@spencern
Copy link
Contributor

@machikoyasuda you've got pending request changes here

@mikemurray mikemurray merged commit 6ae6925 into marketplace Sep 29, 2017
@mikemurray mikemurray deleted the machiko-fix-limited-supply-cart-display branch September 29, 2017 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants