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: Channel simulation #1014

Merged
merged 2 commits into from
Nov 3, 2021
Merged

fix: Channel simulation #1014

merged 2 commits into from
Nov 3, 2021

Conversation

tlgimenes
Copy link
Contributor

@tlgimenes tlgimenes commented Nov 3, 2021

What's the purpose of this pull request?

When an SKU has sellers that are not available on the current sales channel, checkout breaks with

Ocurrió un error de comunicación con el Catálogo de Productos

This PR fixes this problem

How it works?

To fix the aforementioned problem, we need to simulate only the sellers available for that specific sales channel. Hopefully, there is an attribute in the SKU that does just that. The fix is based on using this field instead of all skus's sellers.

Also, another problem this PR fixes is when the product has an empty array of images. This breaks the frontend code since we always need at least one image to show the product.

base.store Deploy Preview

This problem happens on exito account. To see it working, go to https://github.com/vtex-sites/exito.store/pull/1
Also, to make sure no regressions were made: vtex-sites/base.store#96

References

@netlify
Copy link

netlify bot commented Nov 3, 2021

✔️ Deploy Preview for faststoreui ready!

🔨 Explore the source changes: f2d0479

🔍 Inspect the deploy log: https://app.netlify.com/sites/faststoreui/deploys/6182d51277081d000737ec42

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

@tlgimenes tlgimenes marked this pull request as ready for review November 3, 2021 17:48
@tlgimenes tlgimenes requested a review from a team as a code owner November 3, 2021 17:48
@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 3, 2021

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 f2d0479:

Sandbox Source
Store UI Typescript Configuration

@tlgimenes tlgimenes force-pushed the fix/channel-simulation branch from d9986cf to f2d0479 Compare November 3, 2021 18:29
@tlgimenes tlgimenes merged commit b45406b into master Nov 3, 2021
@tlgimenes tlgimenes deleted the fix/channel-simulation branch November 3, 2021 18:40
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