You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Filter by shipping method delivery when dynamic estimate is selected (#3056)
## What's the purpose of this pull request?
Filter by shipping method `delivery` when dynamic estimate is selected,
so the products that are only for pickup in that dynamic estimate aren't
returned.
## How it works?
The following behaviors were introduced:
- When selecting a dynamic estimate, the IS request will be built with
the shipping method `delivery`
- When selecting a dynamic estimate, the shipping method facets will be
hidden for UX purposes
- When deselecting a dynamic estimate, the shipping method facets will
be displayed again
- When deselecting a dynamic estimate, there won't be any shipping
method facet selected - unless there is a global pickup point, in that
case the pickup point will be selected.
## How to test it?
In PLP/Search, use the dynamic estimate filter and note that the request
to IS includes the shipping method delivery also.
Test switching the DE toggle and using the shipping method filter when
the toggle is deselected. Test also with and without a global pickup
point.
Examples:
| 0 DE selected | 1 DE selected | 2 DE selected |
| ---- | ---- | ---- |
| <img width="1507" height="808" alt="Screenshot 2025-09-25 at 11 08 33"
src="https://github.com/user-attachments/assets/346f2590-dabb-4cf5-ad5a-fbeef6583448"
/> | <img width="1505" height="803" alt="Screenshot 2025-09-25 at 15 16
39"
src="https://github.com/user-attachments/assets/90b6480e-0c53-4949-a4a1-a7be89d17930"
/> | <img width="1502" height="800" alt="Screenshot 2025-09-25 at 15 17
24"
src="https://github.com/user-attachments/assets/62c5d9ff-21b4-44d8-9727-8188a8f2f9c3"
/> |
| Note that the shipping method filters are displayed and there is no
shipping method being sent to IS | Note that the shipping method filters
aren't displayed and the `delivery` shipping method is sent to IS | |
### Starters Deploy Preview
- PR: dp-faststore-org/vendemo-dp#100
- Preview:
https://vendemo-cm9sir9v900u7z6llkl62l70j-78q3ujoh1.b.vtex.app/
## References
- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2767)
- Slack threads
([[1](https://vtex.slack.com/archives/C069YM7R73P/p1758305111679099)],
[[2](https://vtex.slack.com/archives/C08SZUBMFDK/p1758724584686339)])
0 commit comments