vtex-apps / product-summary

VTEX Product Summary app
11 stars 52 forks source link

Update default seller after simulation #326

Closed thalytafabrine closed 3 years ago

thalytafabrine commented 3 years ago

What problem is this solving?

When doing a search using a specific zip code, the product appears as unavailable in PLP even though it has stock in a seller. This happened because the default seller information was not updated after the simulation call, so the default seller was still the default seller of the store, even though this seller didn't have stock for that zip code. We need to update the default seller after calling the simulation, ensuring that it will be a seller with stock for the specific zip code, as the product-summary uses the default seller to display price and availability information.

Depends on: https://github.com/vtex-apps/store-graphql/pull/553 https://github.com/vtex-apps/store-resources/pull/158

How to test it?

Workspace

Screenshots or example usage:

Before: image

image

After: image image

Describe alternatives you've considered, if any.

Related to / Depends on

How does this PR make you feel? :link:

![](put .gif link here - can be found under "advanced" on giphy)

vtex-io-ci-cd[bot] commented 3 years ago

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! πŸ€–

Please select which version do you want to release:

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

vtex-io-docs-bot[bot] commented 3 years ago

Beep boop :robot:

I noticed you didn't make any changes at the docs/ folder

In order to keep track, I'll create an issue if you decide now is not a good time

vtex-io-ci-cd[bot] commented 3 years ago

Your PR has been merged! App is being published. :rocket: Version 2.74.0 β†’ 2.74.1

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy vtex.product-summary@2.74.1

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. :book: