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.