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: StoreProduct return wrong sku #1156

Merged
merged 1 commit into from
Feb 22, 2022
Merged

fix: StoreProduct return wrong sku #1156

merged 1 commit into from
Feb 22, 2022

Conversation

tlgimenes
Copy link
Contributor

What's the purpose of this pull request?

This PR fixes incorrect sku ids being returned on the sku field of StoreProduct.

How it works?

StoreProduct represents a sku on VTEX. StoreProductGroup represents a VTEX Product. As such, the productID and sku fields of StoreProduct must have the same value. This was the case on stores with one sku per product, but not on accounts where multiple skus are present on each product.
This PR uses the same logic for both sku and productID so that they always have the same value

base.store Deploy Preview

Make sure that when adding a product to cart, this product shows on cart correctly.

@tlgimenes tlgimenes requested a review from a team as a code owner February 22, 2022 19:06
@netlify
Copy link

netlify bot commented Feb 22, 2022

✔️ Deploy Preview for faststoreui ready!

🔨 Explore the source changes: ead7d41

🔍 Inspect the deploy log: https://app.netlify.com/sites/faststoreui/deploys/62153a3c89f82000081120d1

😎 Browse the preview: https://deploy-preview-1156--faststoreui.netlify.app

@netlify
Copy link

netlify bot commented Feb 22, 2022

✔️ Deploy Preview for faststore-docs ready!

🔨 Explore the source changes: ead7d41

🔍 Inspect the deploy log: https://app.netlify.com/sites/faststore-docs/deploys/62153a3c6a91c10007f78567

😎 Browse the preview: https://deploy-preview-1156--faststore-docs.netlify.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 22, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ead7d41:

Sandbox Source
Store UI Typescript Configuration

@tlgimenes tlgimenes merged commit 66bf3af into master Feb 22, 2022
@tlgimenes tlgimenes deleted the fix/cart branch February 22, 2022 19:57
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.

3 participants