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

Wrong AvailableQuantity values #11

Open
favri opened this issue May 28, 2021 · 0 comments
Open

Wrong AvailableQuantity values #11

favri opened this issue May 28, 2021 · 0 comments

Comments

@favri
Copy link
Contributor

favri commented May 28, 2021

Describe the bug
AvailableQuantity shows different value from stock. Also value is different in shelf and product-view

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://development--kaluapoc.myvtex.com/
  2. Go to https://development--kaluapoc.myvtex.com/campera-suplex-corte-delantero/p?skuId=27
  3. Values for same SKU are different (10000 and 2000)

Expected behavior
Values should be the same

Screenshots
Screen Shot 2021-05-28 at 4 08 51 PM
Screen Shot 2021-05-28 at 4 09 08 PM

Additional context

I guess the problem is not related to the component itself (i'm sure actually) but to the productContextValue received.

 const seller = getFirstAvailableSeller(
    productContextValue.selectedItem?.sellers
  )

  const availableQuantity = seller?.commertialOffer.AvailableQuantity

availableQuantity is the value that is receiving the wrong value.

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

No branches or pull requests

1 participant