Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Product category information from dataLayer with a wrong sorting
Product category information from dataLayer with a wrong sorting
ID: 328415
Fixed
Published on 12/13/2022
Last update on 2/27/2023

Summary

The product category information in the dataLayer at checkout pages is shown in the wrong sorting. This is represented by the "categoryTree" property.

They'll follow their IDs, sorted from low to high, which may not represent the expected hierarchy for this information.

Simulation

Add a product to the cart and compare the properties "productCategoryIds" and "productCategories" from the orderForm with the property "categoryTree" from the dataLayer.

Workaround

The same information can be retrieved from the orderForm API instead of the dataLayer.

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