Skip to content

fix: Prevent displaying pickup-all facet when there are no pickup points - #2953

Merged
lucasfp13 merged 3 commits into
feat/delivery-promise-1.2from
fix/SFS-2677-prevent-displaying-pickup-anywhere-with-no-pickup-points
Jul 23, 2025
Merged

lucasfp13 merged 3 commits into
feat/delivery-promise-1.2from
fix/SFS-2677-prevent-displaying-pickup-anywhere-with-no-pickup-points

Conversation

@lucasfp13

@lucasfp13 lucasfp13 commented Jul 18, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

With these changes the pickup-all facet will be displayed only when there are pickup points available.

How to test it?

  • Enable Pickup All in the Global Sections on Headless CMS;
Screenshot 2025-07-18 at 17 27 46
  • Set a postal code without pickup points, 55014-740;
  • The pickup-all facet should not be displayed on PLP.

Starters Deploy Preview

https://vendemo-cm9sir9v900u7z6llkl62l70j-icpdr5ohx.b.vtex.app/

@lucasfp13 lucasfp13 self-assigned this Jul 18, 2025
@lucasfp13
lucasfp13 requested a review from a team as a code owner July 18, 2025 20:29
@lucasfp13
lucasfp13 requested review from lariciamota and ommeirelles and removed request for a team July 18, 2025 20:29
@lucasfp13
lucasfp13 changed the base branch from main to feat/delivery-promise-1.2 July 18, 2025 20:29
@codesandbox-ci

codesandbox-ci Bot commented Jul 18, 2025 •

Copy link
Copy Markdown

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.

@hellofanny hellofanny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

  • pickup-all facet being applied ✅
  • Pickup Anywhere being displayed since is enabled in hCMS and there is pickup point available ✅
  • Pickup Anywhere not being displayed since there is no pickup point available ✅
image image image

@lucasfp13
lucasfp13 merged commit 44541f9 into feat/delivery-promise-1.2 Jul 23, 2025
@lucasfp13
lucasfp13 deleted the fix/SFS-2677-prevent-displaying-pickup-anywhere-with-no-pickup-points branch July 23, 2025 14:18
lariciamota pushed a commit that referenced this pull request Jul 24, 2025
…oints (#2953)

## What's the purpose of this pull request?

With these changes the `pickup-all` facet will be displayed only when
there are pickup points available.

## How to test it?

- Enable `Pickup All` in the Global Sections on Headless CMS;

<img width="729" height="358" alt="Screenshot 2025-07-18 at 17 27 46"
src="https://github.com/user-attachments/assets/c7b86013-030e-4c31-b67a-20fdcc9c395c"
/>

- Set a postal code without pickup points, `55014-740`;
- The `pickup-all` facet should not be displayed on PLP.

### Starters Deploy Preview

https://vendemo-cm9sir9v900u7z6llkl62l70j-icpdr5ohx.b.vtex.app/
lariciamota added a commit that referenced this pull request Jul 28, 2025
## What's the purpose of this pull request?

Feature branch for the Delivery Promise feature - phase 1.2 (filters by
shipping method).

- #2803 
- #2826
- #2845
- #2847 
- #2851
- #2852 
- #2847
- #2872
- #2886
- #2909
- #2916 
- #2918 
- #2922 
- #2887 
- #2944 
- #2953 
- #2956 
- #2955 
- #2961 
- #2962 

## How it works?

<!--- Tell us the role of the new feature, or component, in its context.
Provide details about what you have implemented and screenshots if
applicable. --->

## How to test it?

<!--- Describe the steps with bullet points. Is there any external link
that can be used to better test it or an example? --->

### Starters Deploy Preview

<!--- Add a link to a deploy preview from `starter.store` with this
branch being used. --->

<!--- Tip: You can get an installable version of this branch from the
CodeSandbox generated when this PR is created. --->

## References

- [Jira epic](https://vtex-dev.atlassian.net/browse/SFS-2038)

## Checklist

**Documentation**

- [ ] For documentation changes, ping `@Mariana-Caetano` to review and
update (Or submit a doc request)

---------

Co-authored-by: Lucas Feijó <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
Co-authored-by: Fanny Chien <[email protected]>
Co-authored-by: Otavio Moreira Meirelles <[email protected]>
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.

2 participants