Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: LegacyItem videos attribute name on PDP loader #590

Merged

Conversation

pedrobernardina
Copy link
Contributor

What is this contribution about?

On PDP, VTEX Legacy API returns the attribute "Videos", capitalized, whilst Intelligent Search returns "videos". The first case was not being treated, hence products returned by the legacy API would never have videos.

This can be seen in the following product:

https://simplesreserva.vtexcommercestable.com.br/api/catalog_system/pub/products/search/camiseta-manga-curta-algodao-peruano-vermelho-escuro-0077065055/p

image

The video attribute is capitalized on the legacy api, hence using this
loader would never return product videos.
Copy link
Contributor

@viktormarinho viktormarinho left a comment

Choose a reason for hiding this comment

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

Lgtm

@viktormarinho viktormarinho merged commit da55e09 into deco-cx:main May 22, 2024
1 check passed
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.

None yet

3 participants