Skip to content

Conversation

@lariciamota
Copy link
Contributor

@lariciamota lariciamota commented Nov 4, 2025

What's the purpose of this pull request?

Add the Sort by selector labels to hCMS so it can be editable. We need it there so it can be translated through the CMS.

⚠️ Breaking change: there is no more sort options hardcoded, the values necessarily have to come through CMS.
This PR will be merged in the feat/multilanguage feature branch, which will be available only in the next faststore major version.

How it works?

It was hardcoded, so adding it to the hCMS schema allows it to be editable.

How to test it?

In a Search page or PLP, observe the Sort by selector, it should have the values configured through the hCMS.

PLP Search
Screenshot 2025-11-05 at 09 57 37 Screenshot 2025-11-05 at 09 57 55
Screenshot 2025-11-05 at 14 25 01 Screenshot 2025-11-05 at 14 25 18

If the field is not being displayed in the hCMS, remember to cms sync and publish the page.

Starters Deploy Preview

References

@lariciamota lariciamota self-assigned this Nov 4, 2025
@lariciamota lariciamota added the enhancement New feature or request label Nov 4, 2025
@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 4, 2025

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.

@lariciamota lariciamota force-pushed the chore/sort-options-cms branch from 24bbf9f to b2237bd Compare November 4, 2025 19:10
@lariciamota lariciamota changed the base branch from feat/multilanguage to chore/breadcrumb-title-cms November 4, 2025 19:12
@lariciamota lariciamota marked this pull request as ready for review November 5, 2025 17:27
@lariciamota lariciamota requested a review from a team as a code owner November 5, 2025 17:27
@lariciamota lariciamota requested review from eduardoformiga and emersonlaurentino and removed request for a team November 5, 2025 17:27
Copy link
Contributor

@lemagnetic lemagnetic left a comment

Choose a reason for hiding this comment

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

Tested on the preview URL, everything’s working fine! “Sort by” labels are coming from hCMS

Base automatically changed from chore/breadcrumb-title-cms to feat/multilanguage November 5, 2025 19:14
Copy link
Contributor

@hellofanny hellofanny left a comment

Choose a reason for hiding this comment

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

niceee!
image

@lariciamota lariciamota force-pushed the chore/sort-options-cms branch from b2237bd to 08b5527 Compare November 7, 2025 13:26
@lariciamota lariciamota merged commit 182c455 into feat/multilanguage Nov 7, 2025
4 of 5 checks passed
@lariciamota lariciamota deleted the chore/sort-options-cms branch November 7, 2025 13:34
lemagnetic pushed a commit that referenced this pull request Nov 20, 2025
## What's the purpose of this pull request?

Add the Sort by selector labels to hCMS so it can be editable. We need
it there so it can be translated through the CMS.

⚠️ Breaking change: there is no more sort options hardcoded, the values
necessarily have to come through CMS.
This PR will be merged in the `feat/multilanguage` feature branch, which
will be available only in the next faststore major version.

## How it works?

It was hardcoded, so adding it to the hCMS schema allows it to be
editable.

## How to test it?

In a Search page or PLP, observe the Sort by selector, it should have
the values configured through the hCMS.

| PLP | Search |
| ---- | ---- |
| <img width="1031" height="922" alt="Screenshot 2025-11-05 at 09 57 37"
src="https://github.com/user-attachments/assets/40379935-78f7-402c-9020-662bdc824bbe"
/> | <img width="1024" height="915" alt="Screenshot 2025-11-05 at 09 57
55"
src="https://github.com/user-attachments/assets/bde4a107-b6dd-414e-a592-bb29ffae1788"
/> |
| <img width="1502" height="505" alt="Screenshot 2025-11-05 at 14 25 01"
src="https://github.com/user-attachments/assets/f4c6fcbf-b4a1-4f8d-98ec-b49f7dfde6d5"
/> | <img width="1502" height="438" alt="Screenshot 2025-11-05 at 14 25
18"
src="https://github.com/user-attachments/assets/8f0f10aa-b38c-479e-9a09-3d58f9b582d8"
/> |


If the field is not being displayed in the hCMS, remember to cms sync
and publish the page.

### Starters Deploy Preview

- https://brandless-cma5xay4001f6dn4xjwato8b4-4tvja66oo.b.vtex.app/
([PR](vtex-sites/brandless.store#113))

## References

- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-2915)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants