Skip to content

Conversation

@Tooni
Copy link

@Tooni Tooni commented Nov 26, 2025

COMHUB2-1228

We have a new feature in Commerce called Spotlight Content. These are arbitrary bits of content that the merchandiser can have returned for their Product Listings, though in future it will be needed for Search and Recommendations as well. Here it is in the Commerce Hub preview. You can see a random bit of content mixed in with the products.

image

It means it no longer makes much sense for the products list in the responses to be called that, so there is a new list of results now, which can contain both Products and Spotlight Content. To not be a breaking change, this is an opt-in feature, where users have to send an enableResults param on their requests. When they send the param, the results field is filled in instead of the products field, and they can see their Spotlight Content. There is a doc here explaining the approach in more detail.

To facilitate enableResults in Headless, I've tried to introduce a new option to the ProductListing controller, where the user can pass an optional enableResults boolean, which gets propagated down. Have I done this right? It is my first time working with Headless or Redux. The plan is that there should be no change for existing users, and users who want Spotlight Content can opt-in by sending that boolean. Do I need to update anything apart from Headless, like Atomic and stuff? Edit: After talking with Benoit Thibault and a couple others, we need only Headless support for now.

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.

4 participants