Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
getCurrentProductWithVariations function from VTEX.js brings data from Component SKU and not from KIT SKU.
getCurrentProductWithVariations function from VTEX.js brings data from Component SKU and not from KIT SKU.
ID: 324416
No Fix
Published on 3/16/2022
Last update on 2/16/2024

Summary

Function getCurrentProductWithVariations from VTEX.js brings data from Component SKU instead of KIT SKU.

Simulation

  • Access a PDP from a KIT Product;
  • Use the function getCurrentProductWithVariations to get data from the KIT;
  • Check that the response is from the SKU Components, and not from the KIT SKU.

Workaround

Use the function getProductWithVariations({productId})as a workaround. In this case, we have to use the Product ID from this KIT.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback